mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46:28 +03:00
Origin of spacy.matcher attributes
Make it clear that Matcher attributes live in spacy.matcher.attrs.
This commit is contained in:
parent
842155e3ae
commit
9fa6f9fb40
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user