mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
remove universe object: spacy_kenlm
This commit is contained in:
parent
224f30c563
commit
60a35a2bb2
|
@ -875,30 +875,6 @@
|
||||||
"github": "shigapov"
|
"github": "shigapov"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "spacy_kenlm",
|
|
||||||
"slogan": "KenLM extension for spaCy 2.0",
|
|
||||||
"github": "tokestermw/spacy_kenlm",
|
|
||||||
"pip": "spacy_kenlm",
|
|
||||||
"code_example": [
|
|
||||||
"import spacy",
|
|
||||||
"from spacy_kenlm import spaCyKenLM",
|
|
||||||
"",
|
|
||||||
"nlp = spacy.load('en_core_web_sm')",
|
|
||||||
"spacy_kenlm = spaCyKenLM() # default model from test.arpa",
|
|
||||||
"nlp.add_pipe(spacy_kenlm)",
|
|
||||||
"doc = nlp('How are you?')",
|
|
||||||
"doc._.kenlm_score # doc score",
|
|
||||||
"doc[:2]._.kenlm_score # span score",
|
|
||||||
"doc[2]._.kenlm_score # token score"
|
|
||||||
],
|
|
||||||
"author": "Motoki Wu",
|
|
||||||
"author_links": {
|
|
||||||
"github": "tokestermw",
|
|
||||||
"twitter": "plusepsilon"
|
|
||||||
},
|
|
||||||
"category": ["pipeline"]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "spacy_readability",
|
"id": "spacy_readability",
|
||||||
"slogan": "Add text readability meta data to Doc objects",
|
"slogan": "Add text readability meta data to Doc objects",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user