diff --git a/website/docs/usage/entity-recognition.jade b/website/docs/usage/entity-recognition.jade index 3e0f538c0..9fc7dddd9 100644 --- a/website/docs/usage/entity-recognition.jade +++ b/website/docs/usage/entity-recognition.jade @@ -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