Update universe.json to include negspacy (#4132)

This commit is contained in:
Jeno 2019-08-16 11:48:17 -04:00 committed by Ines Montani
parent e5c7e19e82
commit 91441f169c

View File

@ -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"
}
}
],