From 5d7bc26735a94b1901ee50dfa6130b5a485150fb Mon Sep 17 00:00:00 2001 From: yanaiela Date: Sun, 25 Aug 2019 18:25:28 +0300 Subject: [PATCH] new universe project - the numeric fused-head (#4192) * new universe project * Update website/meta/universe.json Co-Authored-By: Ines Montani * Update website/meta/universe.json Co-Authored-By: Ines Montani --- website/meta/universe.json | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/website/meta/universe.json b/website/meta/universe.json index c3eee3901..26d75ed4f 100644 --- a/website/meta/universe.json +++ b/website/meta/universe.json @@ -1715,7 +1715,36 @@ "\tprint(ent.text, ent.start_char, ent.end_char, ent.label_)" ], "author": "Stefan Daniel Dumitrescu, Andrei-Marius Avram" - } + }, + { + "id": "num_fh", + "title": "Numeric Fused-Head", + "slogan": "Numeric Fused-Head Identificaiton and Resolution in English", + "description": "This package provide a wrapper for the Numeric Fused-Head in English. It provides another information layer on numbers that refer to another entity which is not obvious from the syntactic tree.", + "github": "yanaiela/num_fh", + "pip": "num_fh", + "category": ["pipeline", "research"], + "code_example": [ + "import spacy", + "from num_fh import NFH", + "nlp = spacy.load('en_core_web_sm')", + "nfh = NFH(nlp)", + "nlp.add_pipe(nfh, first=False)", + "doc = nlp(\"I told you two, that only one of them is the one who will get 2 or 3 icecreams\")", + "", + "assert doc[16]._.is_nfh == True", + "assert doc[18]._.is_nfh == False", + "assert doc[3]._.is_deter_nfh == True", + "assert doc[16]._.is_deter_nfh == False", + "assert len(doc._.nfh) == 4", + ], + "author": "Yanai Elazar", + "author_links": { + "github": "yanaiela", + "twitter": "yanaiela", + "website": "https://yanaiela.github.io" + } + }, ], "categories": [