Merge pull request #833 from vaulttech/master (resolves #832)

Fixes example 3 of entity recognition (see issue #832)
This commit is contained in:
Ines Montani 2017-02-16 12:13:48 +01:00 committed by GitHub
commit 4e673bfeea

View File

@ -57,7 +57,7 @@ p
doc.ents = [Span(doc, 0, 1, label=doc.vocab.strings['GPE'])]
assert doc[0].ent_type_ == 'GPE'
doc.ents = []
doc.ents = [(u'LondonCity', u'GPE', 0, 1)]
doc.ents = [(u'LondonCity', doc.vocab.strings['GPE']), 0, 1)]
p
| The value you assign should be a sequence, the values of which