mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Update universe.json to include negspacy (#4132)
This commit is contained in:
parent
e5c7e19e82
commit
91441f169c
|
@ -1600,6 +1600,36 @@
|
|||
"github": "explosion",
|
||||
"website": "https://explosion.ai"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "negspacy",
|
||||
"title": "negspaCy",
|
||||
"slogan": "spaCy pipeline object for negating concepts in text based on the NegEx algorithm.",
|
||||
"github": "jenojp/negspacy",
|
||||
"url": "https://github.com/jenojp/negspacy",
|
||||
"description": "negspacy is a spaCy pipeline component that evaluates whether Named Entities are negated in text. It adds an extension to 'Span' objects.",
|
||||
"pip": "negspacy",
|
||||
"category": ["pipeline", "scientific"],
|
||||
"tags": ["negation", "text-processing"],
|
||||
"thumb":"https://github.com/jenojp/negspacy/blob/master/docs/thumb.png?raw=true",
|
||||
"image":"https://github.com/jenojp/negspacy/blob/master/docs/icon.png?raw=true",
|
||||
"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)"
|
||||
],
|
||||
"author": "Jeno Pizarro",
|
||||
"author_links": {
|
||||
"github": "jenojp",
|
||||
"twitter": "jenojp"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user