From 250879bb96220ef3c59c2974af87e1ea51ddea15 Mon Sep 17 00:00:00 2001 From: Sasho Savkov Date: Fri, 11 Nov 2016 12:04:08 +0000 Subject: [PATCH] Missing import statement It is useful to know where the Matcher class is if you haven't used it before. Or you are simply too lazy to remember, like me :) FYI: some packages don't appear in the PyCharm autocompletion lists. `spacy.matcher` is one of them. --- website/docs/usage/rule-based-matching.jade | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/usage/rule-based-matching.jade b/website/docs/usage/rule-based-matching.jade index c9cbc13d9..c7641619c 100644 --- a/website/docs/usage/rule-based-matching.jade +++ b/website/docs/usage/rule-based-matching.jade @@ -21,6 +21,7 @@ p | callable, to receive a list of #[code (ent_id, start, end)] tuples: +code. + from spacy.matcher import Matcher matcher = Matcher(nlp.vocab) matcher.add_pattern("HelloWorld", [{LOWER: "hello"}, {IS_PUNCT: True}, {LOWER: "world"}])