From e972b2fa87dc2a35ed6bdf9462e71ddc5ca448fe Mon Sep 17 00:00:00 2001 From: Stefan Bunk Date: Tue, 7 Feb 2017 16:52:01 +0100 Subject: [PATCH] Fix error in matching documentation LOWER and IS_PUNCT are members of `spacy` and not of the `Matcher` class. --- website/docs/usage/rule-based-matching.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/usage/rule-based-matching.jade b/website/docs/usage/rule-based-matching.jade index 7650e4a03..aea943a61 100644 --- a/website/docs/usage/rule-based-matching.jade +++ b/website/docs/usage/rule-based-matching.jade @@ -20,7 +20,7 @@ p | Once we've added the pattern, we can use the #[code matcher] as a | callable, to receive a list of #[code (ent_id, start, end)] tuples. | Note that #[code LOWER] and #[code IS_PUNCT] are data attributes - | of #[code Matcher.attrs]. + | of #[code spacy.attrs]. +code. from spacy.matcher import Matcher