Update docs for new version [ci skip]

This commit is contained in:
Ines Montani 2018-10-13 23:53:33 +02:00
parent f0e7da6478
commit 23d5b4ff5b
3 changed files with 27 additions and 11 deletions

View File

@ -346,6 +346,7 @@ p
+row +row
+cell #[code --verbose] +cell #[code --verbose]
+tag-new("2.0.13")
+cell flag +cell flag
+cell Show more detail message during training. +cell Show more detail message during training.

View File

@ -349,6 +349,30 @@ p Retokenize the document, such that the span is merged into a single token.
+cell #[code Token] +cell #[code Token]
+cell The newly merged token. +cell The newly merged token.
+h(2, "ents") Span.ents
+tag property
+tag-model("NER")
p
| Iterate over the entities in the span. Yields named-entity
| #[code Span] objects, if the entity recognizer has been applied to the
| parent document.
+aside-code("Example").
doc = nlp(u'Mr. Best flew to New York on Saturday morning.')
span = doc[0:6]
ents = list(span.ents)
assert ents[0].label == 346
assert ents[0].label_ == 'PERSON'
assert ents[0].text == 'Mr. Best'
+table(["Name", "Type", "Description"])
+row("foot")
+cell yields
+cell #[code Span]
+cell Entities in the document.
+h(2, "as_doc") Span.as_doc +h(2, "as_doc") Span.as_doc
p p

View File

@ -27,17 +27,6 @@
} }
}, },
"comparison": {
"title": "Model Comparison",
"teaser": "Compare spaCy's statistical models and their accuracy.",
"tag": "experimental",
"compare_models": true,
"default_models": {
"model1": "en_core_web_sm",
"model2": "en_core_web_lg"
}
},
"MODELS": { "MODELS": {
"en": ["en_core_web_sm", "en_core_web_md", "en_core_web_lg", "en_vectors_web_lg"], "en": ["en_core_web_sm", "en_core_web_md", "en_core_web_lg", "en_vectors_web_lg"],
"de": ["de_core_news_sm"], "de": ["de_core_news_sm"],
@ -122,6 +111,8 @@
"fa": "Persian", "fa": "Persian",
"ur": "Urdu", "ur": "Urdu",
"tt": "Tatar", "tt": "Tatar",
"te": "Telugu",
"si": "Sinhala",
"ga": "Irish", "ga": "Irish",
"bn": "Bengali", "bn": "Bengali",
"hi": "Hindi", "hi": "Hindi",