This commit is contained in:
Dan Radenkovic 2022-07-24 10:16:36 +02:00 committed by GitHub
parent 7ff52c02a1
commit a5aa3a818f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
> ``` > ```