Merge pull request #716 from guyrosin/patch-1

Tiny code typo
This commit is contained in:
Ines Montani 2016-12-31 14:19:25 +01:00 committed by GitHub
commit b4f6b1da9e

View File

@ -141,7 +141,7 @@ p
span.merge(label=label, tag='NNP' if label else span.root.tag_)
matcher.add_entity('GoogleNow', on_match=merge_phrases)
matcher.add_pattern('GoogleNow', {ORTH: 'Google'}, {ORTH: 'Now'}])
matcher.add_pattern('GoogleNow', [{ORTH: 'Google'}, {ORTH: 'Now'}])
doc = Doc(matcher.vocab, words=[u'Google', u'Now', u'is', u'being', u'rebranded'])
matcher(doc)
print([w.text for w in doc])