mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 02:36:32 +03:00
Merge branch 'develop' of https://github.com/explosion/spaCy into develop
This commit is contained in:
commit
3a3ed43e0c
|
@ -148,8 +148,7 @@ p Create a #[code Span] object from the slice #[code doc.text[start : end]].
|
||||||
|
|
||||||
+aside-code("Example").
|
+aside-code("Example").
|
||||||
doc = nlp(u'I like New York')
|
doc = nlp(u'I like New York')
|
||||||
label = doc.vocab.strings['GPE']
|
span = doc.char_span(7, 15, label=u'GPE')
|
||||||
span = doc.char_span(7, 15, label=label)
|
|
||||||
assert span.text == 'New York'
|
assert span.text == 'New York'
|
||||||
|
|
||||||
+table(["Name", "Type", "Description"])
|
+table(["Name", "Type", "Description"])
|
||||||
|
@ -165,7 +164,7 @@ p Create a #[code Span] object from the slice #[code doc.text[start : end]].
|
||||||
|
|
||||||
+row
|
+row
|
||||||
+cell #[code label]
|
+cell #[code label]
|
||||||
+cell uint64
|
+cell uint64 / unicode
|
||||||
+cell A label to attach to the Span, e.g. for named entities.
|
+cell A label to attach to the Span, e.g. for named entities.
|
||||||
|
|
||||||
+row
|
+row
|
||||||
|
|
Loading…
Reference in New Issue
Block a user