diff --git a/website/docs/usage/rule-based-matching.jade b/website/docs/usage/rule-based-matching.jade index 41fa0bdd3..bedadb0d3 100644 --- a/website/docs/usage/rule-based-matching.jade +++ b/website/docs/usage/rule-based-matching.jade @@ -21,6 +21,7 @@ p | callable, to receive a list of #[code (ent_id, start, end)] tuples: +code. + from spacy.matcher import Matcher matcher = Matcher(nlp.vocab) matcher.add_pattern("HelloWorld", [{LOWER: "hello"}, {IS_PUNCT: True}, {LOWER: "world"}])