From 0c74506c9cb79c76ca06ef04a4d44a042e1b3f7c Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sat, 1 Jun 2019 11:35:01 +0200 Subject: [PATCH] Fix typos in docs (closes #3802) [ci skip] --- website/docs/usage/rule-based-matching.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/usage/rule-based-matching.md b/website/docs/usage/rule-based-matching.md index 13d3dcd32..ee901e3fd 100644 --- a/website/docs/usage/rule-based-matching.md +++ b/website/docs/usage/rule-based-matching.md @@ -405,7 +405,7 @@ class BadHTMLMerger(object): for match_id, start, end in matches: spans.append(doc[start:end]) with doc.retokenize() as retokenizer: - for span in hashtags: + for span in spans: retokenizer.merge(span) for token in span: token._.bad_html = True # Mark token as bad HTML @@ -679,7 +679,7 @@ for match_id, start, end in matches: if doc.vocab.strings[match_id] == "HASHTAG": hashtags.append(doc[start:end]) with doc.retokenize() as retokenizer: - for span in spans: + for span in hashtags: retokenizer.merge(span) for token in span: token._.is_hashtag = True