Merge pull request #6578 from jenojp/master [ci skip]

This commit is contained in:
Ines Montani 2020-12-16 17:31:55 +11:00 committed by GitHub
commit 7c9a2f298c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -2129,7 +2129,7 @@
"from negspacy.negation import Negex", "from negspacy.negation import Negex",
"", "",
"nlp = spacy.load(\"en_core_web_sm\")", "nlp = spacy.load(\"en_core_web_sm\")",
"negex = Negex(nlp, ent_types=[\"PERSON','ORG\"])", "negex = Negex(nlp, ent_types=[\"PERSON\",\"ORG\"])",
"nlp.add_pipe(negex, last=True)", "nlp.add_pipe(negex, last=True)",
"", "",
"doc = nlp(\"She does not like Steve Jobs but likes Apple products.\")", "doc = nlp(\"She does not like Steve Jobs but likes Apple products.\")",