Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2020-01-10 16:24:44,957 DEBUG:drafttopic.utilities.fetch_draft_text -- Write Dimitrios Ferfelis with 1815 chars of text.
- ./utility extract_from_text \
- drafttopic.feature_lists.wordvectors.drafttopic \
- --input=datasets/enwiki.balanced_article_sample.w_draft_text.json \
- --output=datasets/enwiki.balanced_article_sample.w_draft_cache.json \
- --verbose
- /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
- 'See the migration notes for details: %s' % _MIGRATION_NOTES_URL
- .....multiprocessing.pool.RemoteTraceback:
- """
- Traceback (most recent call last):
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/functions.py", line 244, in _solve
- value = dependent(*args)
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 41, in __call__
- value = super().__call__(*args, **kwargs)
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/dependent.py", line 54, in __call__
- return self.process(*args, **kwargs)
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 221, in operate
- return left / right
- ZeroDivisionError: float division by zero
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
- result = (True, func(*args, **kwds))
- File "/srv/home/kevinbazira/pr/drafttopic/drafttopic/utilities/extract_from_text.py", line 112, in extract_and_cache
- cache=observation.get('cache'))
- File "/srv/home/kevinbazira/pr/drafttopic/drafttopic/utilities/extract_from_text.py", line 140, in extract_from_text
- return list(solve(dependents, cache=cache, context=context))
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/functions.py", line 269, in _solve_many
- profile=profile)
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/functions.py", line 258, in _solve
- formatted_exception)
- 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
- Traceback (most recent call last):
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/functions.py", line 244, in _solve
- value = dependent(*args)
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 41, in __call__
- value = super().__call__(*args, **kwargs)
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/dependent.py", line 54, in __call__
- return self.process(*args, **kwargs)
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 221, in operate
- return left / right
- ZeroDivisionError: float division by zero
- """
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "./utility", line 4, in <module>
- drafttopic.main()
- File "/srv/home/kevinbazira/pr/drafttopic/drafttopic/drafttopic.py", line 57, in main
- module.main(sys.argv[2:])
- File "/srv/home/kevinbazira/pr/drafttopic/drafttopic/utilities/extract_from_text.py", line 76, in main
- run(observations, dependents, output, extractors, verbose)
- File "/srv/home/kevinbazira/pr/drafttopic/drafttopic/utilities/extract_from_text.py", line 85, in run
- extractor.extract_and_cache, labelings):
- File "/usr/lib/python3.5/multiprocessing/pool.py", line 695, in next
- raise value
- 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
- Traceback (most recent call last):
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/functions.py", line 244, in _solve
- value = dependent(*args)
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 41, in __call__
- value = super().__call__(*args, **kwargs)
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/dependencies/dependent.py", line 54, in __call__
- return self.process(*args, **kwargs)
- File "/srv/home/kevinbazira/venv/3.5/lib/python3.5/site-packages/revscoring/features/feature.py", line 221, in operate
- return left / right
- ZeroDivisionError: float division by zero
- Makefile:64: recipe for target 'datasets/enwiki.balanced_article_sample.w_draft_cache.json' failed
- make: *** [datasets/enwiki.balanced_article_sample.w_draft_cache.json] Error 1
- make: *** Deleting file 'datasets/enwiki.balanced_article_sample.w_draft_cache.json'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement