Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regular string that matches RE_SYNSET throws AttributeError #178

Closed
tylerjharden opened this issue Nov 6, 2017 · 0 comments
Closed

Regular string that matches RE_SYNSET throws AttributeError #178

tylerjharden opened this issue Nov 6, 2017 · 0 comments

Comments

@tylerjharden
Copy link
Collaborator

I encountered this while processing sentiment using TextBlob of some live data scraped from the internet. The string field in question was of the value "c-17", which the PatternAnalyzer logic is expecting to be an instance of a Synset, complete with synonyms.

This is incorrect behavior, as it is attempting to access "synonyms" on an instance of an actual string. I have fixed this and will open a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants