mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
benepar usage example has deprecated imports
This commit is contained in:
parent
1e974de837
commit
2613f0e98f
|
@ -2064,11 +2064,9 @@
|
||||||
"github": "nikitakit/self-attentive-parser",
|
"github": "nikitakit/self-attentive-parser",
|
||||||
"pip": "benepar",
|
"pip": "benepar",
|
||||||
"code_example": [
|
"code_example": [
|
||||||
"import spacy",
|
"import benepar, spacy",
|
||||||
"from benepar.spacy_plugin import BeneparComponent",
|
"nlp = spacy.load('en_core_web_md')",
|
||||||
"",
|
"nlp.add_pipe('benepar', config={'model': 'benepar_en3'})",
|
||||||
"nlp = spacy.load('en')",
|
|
||||||
"nlp.add_pipe(BeneparComponent('benepar_en'))",
|
|
||||||
"doc = nlp('The time for action is now. It is never too late to do something.')",
|
"doc = nlp('The time for action is now. It is never too late to do something.')",
|
||||||
"sent = list(doc.sents)[0]",
|
"sent = list(doc.sents)[0]",
|
||||||
"print(sent._.parse_string)",
|
"print(sent._.parse_string)",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user