mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Fix error in matching documentation
LOWER and IS_PUNCT are members of `spacy` and not of the `Matcher` class.
This commit is contained in:
parent
654fe447b1
commit
e972b2fa87
|
@ -20,7 +20,7 @@ p
|
||||||
| Once we've added the pattern, we can use the #[code matcher] as a
|
| 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
|
| Note that #[code LOWER] and #[code IS_PUNCT] are data attributes
|
||||||
| of #[code Matcher.attrs].
|
| of #[code spacy.attrs].
|
||||||
|
|
||||||
+code.
|
+code.
|
||||||
from spacy.matcher import Matcher
|
from spacy.matcher import Matcher
|
||||||
|
|
Loading…
Reference in New Issue
Block a user