From 6b30cbaf0b1d2d16c920400ba50c93bef109a75a Mon Sep 17 00:00:00 2001 From: chssch Date: Sat, 22 Oct 2016 15:05:41 +0200 Subject: [PATCH] Strings has be to on vocab object --- website/docs/tutorials/rule-based-matcher.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/tutorials/rule-based-matcher.jade b/website/docs/tutorials/rule-based-matcher.jade index 8c8949631..53d76e145 100644 --- a/website/docs/tutorials/rule-based-matcher.jade +++ b/website/docs/tutorials/rule-based-matcher.jade @@ -32,7 +32,7 @@ p.u-text-large spaCy features a rule-matching engine that operates over tokens. doc = nlp(u"I prefer Siri to Google Now.") matches = matcher(doc) for ent_id, label, start, end in matches: - print(nlp.strings[ent_id], nlp.strings[label], doc[start : end].text) + print(nlp.vocab.strings[ent_id], nlp.vocab.strings[label], doc[start : end].text) entity = matcher.get_entity(ent_id) print(entity)