mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-05 21:53:05 +03:00
Add self-attentive-parser to universe (see #59)
This commit is contained in:
parent
c7d53348d7
commit
3913e18201
|
@ -872,8 +872,36 @@
|
||||||
},
|
},
|
||||||
"category": ["standalone"],
|
"category": ["standalone"],
|
||||||
"tags": [ "question-answering", "elasticsearch"]
|
"tags": [ "question-answering", "elasticsearch"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "self-attentive-parser",
|
||||||
|
"title": "Berkeley Neural Parser",
|
||||||
|
"slogan": "Constituency Parsing with a Self-Attentive Encoder (ACL 2018)",
|
||||||
|
"description": "A Python implementation of the parsers described in *\"Constituency Parsing with a Self-Attentive Encoder\"* from ACL 2018.",
|
||||||
|
"url": "https://arxiv.org/abs/1805.01052",
|
||||||
|
"github": "nikitakit/self-attentive-parser",
|
||||||
|
"pip": "benepar",
|
||||||
|
"code_example": [
|
||||||
|
"import spacy",
|
||||||
|
"from benepar.spacy_plugin import BeneparComponent",
|
||||||
|
"nlp = spacy.load('en')",
|
||||||
|
"nlp.add_pipe(BeneparComponent('benepar_en'))",
|
||||||
|
"doc = nlp(u'The time for action is now. It's never too late to do something.')",
|
||||||
|
"sent = list(doc.sents)[0]",
|
||||||
|
"print(sent._.parse_string)",
|
||||||
|
"# (S (NP (NP (DT The) (NN time)) (PP (IN for) (NP (NN action)))) (VP (VBZ is) (ADVP (RB now))) (. .))",
|
||||||
|
"print(sent._.labels)",
|
||||||
|
"# ('S',)",
|
||||||
|
"print(list(sent._.children)[0])",
|
||||||
|
"# The time for action"
|
||||||
|
],
|
||||||
|
"author": "Nikita Kitaev",
|
||||||
|
"author_links": {
|
||||||
|
"github": "nikitakit",
|
||||||
|
"website": " http://kitaev.io"
|
||||||
|
},
|
||||||
|
"category": ["research", "pipeline"]
|
||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
"projectCats": {
|
"projectCats": {
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user