From fa94f836979516abea5743c0be2715c14c5ebb47 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Fri, 26 Apr 2019 22:50:14 +0800 Subject: [PATCH] Improve redundant variable name (#3643) * Improve redundant variable name * Apply suggestions from code review Co-Authored-By: pickfire --- 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 37626f6a4..a29380490 100644 --- a/website/docs/usage/rule-based-matching.md +++ b/website/docs/usage/rule-based-matching.md @@ -712,9 +712,9 @@ from spacy.matcher import PhraseMatcher nlp = spacy.load('en_core_web_sm') matcher = PhraseMatcher(nlp.vocab) -terminology_list = [u"Barack Obama", u"Angela Merkel", u"Washington, D.C."] +terms = [u"Barack Obama", u"Angela Merkel", u"Washington, D.C."] # Only run nlp.make_doc to speed things up -patterns = [nlp.make_doc(text) for text in terminology_list] +patterns = [nlp.make_doc(text) for text in terms] matcher.add("TerminologyList", None, *patterns) doc = nlp(u"German Chancellor Angela Merkel and US President Barack Obama "