Fix error in matching documentation

LOWER and IS_PUNCT are members of `spacy` and not of the `Matcher` class.
This commit is contained in:
Stefan Bunk 2017-02-07 16:52:01 +01:00 committed by GitHub
parent 654fe447b1
commit e972b2fa87

View File

@ -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