You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running in this problem only when I use Concept to get antonyms, meronyms, and hyponyms, and it works just fine with synonyms. So, I have no clue why this is happening.
Hi @mzeidhassan , thanks for submitting — definitely a bug! I'm not able to test against Windows, so this sort of error is hard for me to catch. The issue here is that textacy is opening the ConceptNet raw CSV file without a specified encoding, so falls back on the system's default. In macOS and Linux systems, the default "utf-8" decodes the data just fine; in Windows, I believe the default is CP1252, and it apparently doesn't recognize all these bytes.
I'm pretty sure that the solution is to add encoding="utf-8" to this line: https://github.com/chartbeat-labs/textacy/blob/main/src/textacy/resources/concept_net.py#L163. I'm going to push that commit to the develop branch, but again, I can't test against Windows. If you're able, please make the change on your local copy (or fetch textacy from the develop branch), then try again. Please let me know if it doesn't solve your issue!
Hi textacy team,
I am running in this problem only when I use Concept to get antonyms, meronyms, and hyponyms, and it works just fine with synonyms. So, I have no clue why this is happening.
steps to reproduce
I am using the same code in documentation.
rs.get_antonyms("love", lang="en", sense="v")
rs.get_hyponyms("marriage", lang="en", sense="n")
environment
spacy
version: 3.0.6spacy
models: en_core_web_smtextacy
version: 0.11.0error:
Thanks
The text was updated successfully, but these errors were encountered: