From bb13aa4bf3b7cb10ac93cc36486e8d0d1fddc43c Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 4 Oct 2017 16:12:06 +0200 Subject: [PATCH] Fix typos in PhraseMatcher docs --- website/api/phrasematcher.jade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/api/phrasematcher.jade b/website/api/phrasematcher.jade index 5c49a03d5..0f0959f28 100644 --- a/website/api/phrasematcher.jade +++ b/website/api/phrasematcher.jade @@ -15,7 +15,7 @@ p Create the rule-based #[code PhraseMatcher]. +aside-code("Example"). from spacy.matcher import PhraseMatcher - matcher = Matcher(nlp.vocab, max_length=6) + matcher = PhraseMatcher(nlp.vocab, max_length=6) +table(["Name", "Type", "Description"]) +row @@ -41,9 +41,9 @@ p Create the rule-based #[code PhraseMatcher]. p Find all token sequences matching the supplied patterns on the #[code Doc]. +aside-code("Example"). - from spacy.matcher import Matcher + from spacy.matcher import PhraseMatcher - matcher = Matcher(nlp.vocab) + matcher = PhraseMatcher(nlp.vocab) matcher.add('OBAMA', None, nlp(u"Barack Obama")) doc = nlp(u"Barack Obama lifts America one last time in emotional farewell") matches = matcher(doc)