mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Fix ents input format example
This commit is contained in:
parent
a9a7cddf5b
commit
e3d84572f2
|
@ -57,7 +57,7 @@ p
|
|||
doc.ents = [Span(0, 1, label='GPE')]
|
||||
assert doc[0].ent_type_ == 'GPE'
|
||||
doc.ents = []
|
||||
doc.ents = [(u'LondonCity', 0, 1, u'GPE')]
|
||||
doc.ents = [(u'LondonCity', u'GPE', 0, 1)]
|
||||
|
||||
p
|
||||
| The value you assign should be a sequence, the values of which
|
||||
|
|
Loading…
Reference in New Issue
Block a user