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

negspacy docs on spacy universe are out of date #34

Closed
koaning opened this issue Mar 12, 2021 · 1 comment
Closed

negspacy docs on spacy universe are out of date #34

koaning opened this issue Mar 12, 2021 · 1 comment

Comments

@koaning
Copy link

koaning commented Mar 12, 2021

Describe the bug
If you go to the docs here you'll see the following code example:

import spacy
from negspacy.negation import Negex

nlp = spacy.load("en_core_web_sm")
negex = Negex(nlp, ent_types=["PERSON','ORG"])
nlp.add_pipe(negex, last=True)

doc = nlp("She does not like Steve Jobs but likes Apple products.")
for e in doc.ents:
    print(e.text, e._.negex)

This is out of date and should be replaced with the contents of the current readme.

@jenojp
Copy link
Owner

jenojp commented May 6, 2021

Updated explosion/spaCy#8022

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