mirror of https://github.com/explosion/spaCy.git
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