This commit is contained in:
Dan Radenkovic 2022-07-24 10:16:36 +02:00 committed by Paul O'Leary McCann
parent 378699afb9
commit 18d9275dfc

View File

@ -199,7 +199,7 @@ will be overwritten.
> [{"LOWER": "hello"}, {"LOWER": "world"}],
> [{"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.")
> matches = matcher(doc)
> ```