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

spacy "is_stop" and lemma_ issue... #2950

Closed
caprone opened this issue Nov 20, 2018 · 1 comment
Closed

spacy "is_stop" and lemma_ issue... #2950

caprone opened this issue Nov 20, 2018 · 1 comment

Comments

@caprone
Copy link

caprone commented Nov 20, 2018

spacy stopwords checker seems not working properly; also with lemmatizer/tagger ther's problem if I want filter PRON pos tag, it always returns -PRON- pos:

nlp = spacy.load('en_core_web_lg', disable=())
doc = nlp('How did Quebec nationalists see their province as a nation in the 1960s?')
print([i.lemma_ if i.pos_ != 'PRON' else i.text for i in doc if not i.is_stop])
# ['how', 'do', 'quebec', 'nationalist', 'see', '-PRON-', 'province', 'as', 'a', 'nation', 'in', 'the', '1960', '?']

why???

edit:
ok, work around for " is_stop" issue at #922

@caprone caprone closed this as completed Nov 20, 2018
@lock
Copy link

lock bot commented Dec 20, 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 Dec 20, 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

1 participant