From 96a4e79d13a17c179684a53efb95dec982d53c77 Mon Sep 17 00:00:00 2001 From: ines Date: Fri, 6 Oct 2017 18:22:10 +0200 Subject: [PATCH] Fix PhraseMatcher example --- website/api/phrasematcher.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/api/phrasematcher.jade b/website/api/phrasematcher.jade index 0f0959f28..223ec11f9 100644 --- a/website/api/phrasematcher.jade +++ b/website/api/phrasematcher.jade @@ -124,9 +124,9 @@ p Check whether the matcher contains rules for a match ID. +aside-code("Example"). matcher = PhraseMatcher(nlp.vocab) - assert len(matcher) == 0 + assert 'OBAMA' not in matcher matcher.add('OBAMA', None, nlp(u"Barack Obama")) - assert len(matcher) == 1 + assert 'OBAMA' in matcher +table(["Name", "Type", "Description"]) +row