Advertisement
kevinbazira

drafttopic model building error 2020.01.10.8.00

Jan 10th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.34 KB | None | 0 0
  1. 2020-01-10 16:24:44,957 DEBUG:drafttopic.utilities.fetch_draft_text -- Write Dimitrios Ferfelis with 1815 chars of text.
  2. ./utility extract_from_text \
  3. drafttopic.feature_lists.wordvectors.drafttopic \
  4. --input=datasets/enwiki.balanced_article_sample.w_draft_text.json \
  5. --output=datasets/enwiki.balanced_article_sample.w_draft_cache.json \
  6. --verbose
  7. /srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/smart_open/smart_open_lib.py:402: UserWarning: This function is deprecated, use smart_open.open instead. See the migration notes for details: https://github.com/RaRe-Technologies/smart_open/blob/master/README.rst#migrating-to-the-new-open-function
  8. 'See the migration notes for details: %s' % _MIGRATION_NOTES_URL
  9. .....multiprocessing.pool.RemoteTraceback:
  10. """
  11. Traceback (most recent call last):
  12. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/functions.py", line 244, in _solve
  13. value = dependent(*args)
  14. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 41, in __call__
  15. value = super().__call__(*args, **kwargs)
  16. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/dependent.py", line 54, in __call__
  17. return self.process(*args, **kwargs)
  18. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 221, in operate
  19. return left / right
  20. ZeroDivisionError: float division by zero
  21.  
  22. During handling of the above exception, another exception occurred:
  23.  
  24. Traceback (most recent call last):
  25. File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
  26. result = (True, func(*args, **kwds))
  27. File "/srv/home/kevinbazira/pr/drafttopic/drafttopic/utilities/extract_from_text.py", line 112, in extract_and_cache
  28. cache=observation.get('cache'))
  29. File "/srv/home/kevinbazira/pr/drafttopic/drafttopic/utilities/extract_from_text.py", line 140, in extract_from_text
  30. return list(solve(dependents, cache=cache, context=context))
  31. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/functions.py", line 269, in _solve_many
  32. profile=profile)
  33. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/functions.py", line 258, in _solve
  34. formatted_exception)
  35. revscoring.errors.CaughtDependencyError: ZeroDivisionError: Failed to process feature.(len(<datasource.wikitext.revision.tokens_matching(\b(she|her|hers)\b)>) / (len(<datasource.wikitext.revision.tokens_matching(\b(she|her|hers)\b)>) + len(<datasource.wikitext.revision.tokens_matching(\b(he|him|his)\b)>))): float division by zero
  36. Traceback (most recent call last):
  37. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/functions.py", line 244, in _solve
  38. value = dependent(*args)
  39. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 41, in __call__
  40. value = super().__call__(*args, **kwargs)
  41. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/dependent.py", line 54, in __call__
  42. return self.process(*args, **kwargs)
  43. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 221, in operate
  44. return left / right
  45. ZeroDivisionError: float division by zero
  46.  
  47. """
  48.  
  49. The above exception was the direct cause of the following exception:
  50.  
  51. Traceback (most recent call last):
  52. File "./utility", line 4, in <module>
  53. drafttopic.main()
  54. File "/srv/home/kevinbazira/pr/drafttopic/drafttopic/drafttopic.py", line 57, in main
  55. module.main(sys.argv[2:])
  56. File "/srv/home/kevinbazira/pr/drafttopic/drafttopic/utilities/extract_from_text.py", line 76, in main
  57. run(observations, dependents, output, extractors, verbose)
  58. File "/srv/home/kevinbazira/pr/drafttopic/drafttopic/utilities/extract_from_text.py", line 85, in run
  59. extractor.extract_and_cache, labelings):
  60. File "/usr/lib/python3.5/multiprocessing/pool.py", line 695, in next
  61. raise value
  62. revscoring.errors.CaughtDependencyError: ZeroDivisionError: Failed to process feature.(len(<datasource.wikitext.revision.tokens_matching(\b(she|her|hers)\b)>) / (len(<datasource.wikitext.revision.tokens_matching(\b(she|her|hers)\b)>) + len(<datasource.wikitext.revision.tokens_matching(\b(he|him|his)\b)>))): float division by zero
  63. Traceback (most recent call last):
  64. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/functions.py", line 244, in _solve
  65. value = dependent(*args)
  66. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 41, in __call__
  67. value = super().__call__(*args, **kwargs)
  68. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/dependent.py", line 54, in __call__
  69. return self.process(*args, **kwargs)
  70. File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 221, in operate
  71. return left / right
  72. ZeroDivisionError: float division by zero
  73.  
  74. Makefile:64: recipe for target 'datasets/enwiki.balanced_article_sample.w_draft_cache.json' failed
  75. make: *** [datasets/enwiki.balanced_article_sample.w_draft_cache.json] Error 1
  76. make: *** Deleting file 'datasets/enwiki.balanced_article_sample.w_draft_cache.json'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement