From 90601cf1b38bcaab121d8c413979c1813e6f4314 Mon Sep 17 00:00:00 2001 From: ines Date: Tue, 24 Oct 2017 16:22:37 +0200 Subject: [PATCH] Fix formatting --- website/docs/usage/rule-based-matching.jade | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/website/docs/usage/rule-based-matching.jade b/website/docs/usage/rule-based-matching.jade index cf27a6a94..4f8172797 100644 --- a/website/docs/usage/rule-based-matching.jade +++ b/website/docs/usage/rule-based-matching.jade @@ -23,7 +23,7 @@ p +code. from spacy.matcher import Matcher from spacy.attrs import IS_PUNCT, LOWER - + matcher = Matcher(nlp.vocab) matcher.add_pattern("HelloWorld", [{LOWER: "hello"}, {IS_PUNCT: True}, {LOWER: "world"}]) @@ -60,8 +60,8 @@ p +h(2, "quantifiers") Using quantifiers p - | Token specifiers may have quantifiers attached to them, by setting the "OP" key - | to one of the following values: + | Token specifiers may have quantifiers attached to them, by setting the + | #[code "OP"] key to one of the following values: +table([ "Name", "Description", "Example"]) +row @@ -85,8 +85,9 @@ p +cell optional, max one p - | Thus the following matcher will match "Hello, World" or "Hello world" or "Hello - - world": - + | Thus the following matcher will match "Hello, World" or "Hello world" or + | "Hello - - world": + +code. matcher = Matcher(nlp.vocab) matcher.add_pattern("HelloWorld", [{LOWER: "hello"}, {IS_PUNCT: True, 'OP': '*'}, {LOWER: "world"}])