wordhoard.synonyms producing errors
johnbumgarner opened this issue · 1 comments
An error is being written in the wordhoard_error.yaml
log file when the following code is executed:
from wordhoard.synonyms import Synonyms
synonyms = Synonyms('bad').find_synonyms()
print(synonyms)
This is the error:
2021-08-15 09:38:29:wordhoard.synonyms:ERROR: An IndexError occurred in the following code segment:
2021-08-15 09:38:29:wordhoard.synonyms:ERROR: File "/Users/unknownPython_Projects/scratch_pad_testing/venv/lib/python3.9/site-packages/wordhoard/synonyms.py", line 194, in _query_synonym_com
synonyms_list = find_synonyms[2].lstrip().replace('synonyms:', '').split(',')
Upon review of this error it was determined that the target source had modified its page navigational structure. This structural change caused the extraction code for the source to fail. It was determined that this change impacted the Wordhoard
extraction modules antonyms, synonyms and definitions.
A source code update to Wordhoard
is being issued, which will mitigate these errors based on the target's current navigational structure.