mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Fixes example 3 of entity recognition (see issue #832)
This commit is contained in:
parent
813989940e
commit
e31894b800
|
@ -57,7 +57,7 @@ p
|
||||||
doc.ents = [Span(doc, 0, 1, label=doc.vocab.strings['GPE'])]
|
doc.ents = [Span(doc, 0, 1, label=doc.vocab.strings['GPE'])]
|
||||||
assert doc[0].ent_type_ == 'GPE'
|
assert doc[0].ent_type_ == 'GPE'
|
||||||
doc.ents = []
|
doc.ents = []
|
||||||
doc.ents = [(u'LondonCity', u'GPE', 0, 1)]
|
doc.ents = [(u'LondonCity', doc.vocab.strings['GPE']), 0, 1)]
|
||||||
|
|
||||||
p
|
p
|
||||||
| The value you assign should be a sequence, the values of which
|
| The value you assign should be a sequence, the values of which
|
||||||
|
|
Loading…
Reference in New Issue
Block a user