-
Notifications
You must be signed in to change notification settings - Fork 1.2k
s-singular fix #97
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
s-singular fix #97
Conversation
|
so those tests also failed on travis, and for me when I tried on master. eager to hear your thoughts |
|
i figured out the unittest failures. they are due to nltk version 3.1. runs fine when i downgrade 3.0.5. sorry to dump all of this here. can write up an issue if you'd like me to. don't know enough about about nltk and the spelling functions to fix it, but i could set it up to pin to nltk==3.0.5 if you think that's the best move |
.gitignore
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm -0 on adding things like this to project gitignores. This should really be in a global gitignore. See https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
This reverts commit 2bb64f0.
|
Thanks @jonmcoe for the patch! I'll try to look more closely at the test failure within the next day or two. I would rather not pin to older versions of NLTK. Re: your questions about inflection--TextBlob uses pattern's implementation from https://github.com/clips/pattern/blob/master/pattern/text/en/inflect.py with just a few modifications to support Python 3. I recommend directing your questions on that repo, and possibly sending this patch there if you're feeling generous. =). Just a few changes to make above. Once those and the failing tests are addressed, this should be good to merge. |
|
sounds good! thanks for explaining |
|
The failing tests have been addressed on |
Few notes:
1) Two tests failed for me both before, and after, my changes
This is probably something with my setup, but not sure what. I am using I am using python 2.7.10 and followed the instructions in https://github.com/sloria/TextBlob/blob/dev/CONTRIBUTING.rst with the only addition being the download_corpora. I don't think I experienced these failures when working on #96 , but I am getting them now even when I checkout far into the past (8904336 for example) so that's why I feel confident it is something in my setup. Any ideas?
2) Why aren't
plural_categories['uninflected']/['uncountable']andsingular_uninflected/uncountablethe exact same lists?I looked into the differences, the only difference is that there are two
singular_uninflectednot in its counterpart. I'm guessing this is an artifact of http://www.bermi.org/inflector/ vs http://www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html3) high-jinks pluralizes wrong
I'm guessing this is due to the hyphen, and something about the treatment of rules in the
forloop aroundinflect.py:277. I didn't really dig yet, and it seemed a little bit heavy of an issue to just lump into this pull request anyway.Anyway, love your library. Been happily using the classifiers and sentiment analysis for a little while now. Just found these few issues with pluralization/singularization and am happy to contribute.