From e31894b800c42ac5d08efb083d10c571b817f929 Mon Sep 17 00:00:00 2001 From: John Gamboa Date: Thu, 16 Feb 2017 11:19:53 +0100 Subject: [PATCH] Fixes example 3 of entity recognition (see issue #832) --- website/docs/usage/entity-recognition.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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