Fixes example 3 of entity recognition (see issue #832)

This commit is contained in:
John Gamboa 2017-02-16 11:19:53 +01:00
parent 813989940e
commit e31894b800

View File

@ -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