Fix PhraseMatcher example

This commit is contained in:
ines 2017-10-06 18:22:10 +02:00
parent c36d4596bf
commit 96a4e79d13
1 changed files with 2 additions and 2 deletions

View File

@ -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