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

Lemmatizer is converting all PRP tokens to the lemma -PRON- #31

Closed
cyrus opened this issue Mar 5, 2015 · 2 comments
Closed

Lemmatizer is converting all PRP tokens to the lemma -PRON- #31

cyrus opened this issue Mar 5, 2015 · 2 comments

Comments

@cyrus
Copy link

cyrus commented Mar 5, 2015

No sure if this is a bug or a feature, but just thought I would note it:

>>>tokens = nlp(u"I see you.", tag=True, parse=False)
>>>tokens[0].lemma_
'-PRON-'

>>>tokens[2].lemma_
'-PRON-'

Shouldn't the lemmas be "I" and "you"?

Thanks for the nice work on spaCy!

-Cyrus

@honnibal
Copy link
Member

honnibal commented Mar 5, 2015

Lemmas are not defined for WordNet, so I had to make up the policy. I decided to do it this way. Otherwise you'd have to guess what "she", "they", "it" etc resolved to.

In a lot of other WordNet lemmatizers, "his" gets lemmatized to "hi", because it's not in the lexicon!

@honnibal honnibal closed this as completed Mar 9, 2015
@lock
Copy link

lock bot commented May 9, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants