-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
word.lemma_ will lowercase the token #14
Comments
That would be more of a spacy issue I think, as far as I know typically any lemmatizer returns text in lower case. You might consider checking Only option for you is to check the case of each word beforehand and then manually convert the case of the lemma after lemmatization if needed. Otherwise would need to send this request upstream to the spacy or nltk devs. |
Do we need to add some comments to explain this in your practical-machine-learning-with-python? |
People may be confused to see their results because no matter how they set the |
yes definitely, that would be a good point to mention I think |
text = ' '.join([word.lemma_ if word.lemma_ != '-PRON-' else word.text for word in text])
In the latest Spacy, after I run the code, the text will be lowercased. Actually, I do not want to do this at this stage. I think this is an issue.
The text was updated successfully, but these errors were encountered: