mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
fix docs (#11123)
This commit is contained in:
parent
7ff52c02a1
commit
a5aa3a818f
|
@ -199,7 +199,7 @@ will be overwritten.
|
||||||
> [{"LOWER": "hello"}, {"LOWER": "world"}],
|
> [{"LOWER": "hello"}, {"LOWER": "world"}],
|
||||||
> [{"ORTH": "Google"}, {"ORTH": "Maps"}]
|
> [{"ORTH": "Google"}, {"ORTH": "Maps"}]
|
||||||
> ]
|
> ]
|
||||||
> matcher.add("TEST_PATTERNS", patterns)
|
> matcher.add("TEST_PATTERNS", patterns, on_match=on_match)
|
||||||
> doc = nlp("HELLO WORLD on Google Maps.")
|
> doc = nlp("HELLO WORLD on Google Maps.")
|
||||||
> matches = matcher(doc)
|
> matches = matcher(doc)
|
||||||
> ```
|
> ```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user