Origin of spacy.matcher attributes

Make it clear that Matcher attributes live in spacy.matcher.attrs.
This commit is contained in:
Jason Kessler 2017-01-16 13:31:35 -06:00 committed by GitHub
parent 842155e3ae
commit 9fa6f9fb40
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ p Here's a minimal example. We first add a pattern that specifies three tokens:
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:
| 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].
+code.
from spacy.matcher import Matcher