mirror of https://github.com/explosion/spaCy.git
commit
38f5ad4bfb
|
@ -36,10 +36,10 @@ p
|
|||
|
||||
+code("Example").
|
||||
doc = nlp(u'London is a big city in the United Kingdom.')
|
||||
print(doc[0].text, doc[0].ent_iob, doc[0].ent_type_))
|
||||
print(doc[0].text, doc[0].ent_iob, doc[0].ent_type_)
|
||||
# (u'London', 2, u'GPE')
|
||||
print(doc[1].text, doc[1].ent_iob, doc[1].ent_type_))
|
||||
(u'is', 3, u'')]
|
||||
print(doc[1].text, doc[1].ent_iob, doc[1].ent_type_)
|
||||
# (u'is', 3, u'')
|
||||
|
||||
+h(2, "setting") Setting entity annotations
|
||||
|
||||
|
|
Loading…
Reference in New Issue