Tiny code typo

This commit is contained in:
Guy Rosin 2016-12-31 14:53:05 +02:00 committed by GitHub
parent 505f31f2bf
commit acdd2fc9a6

View File

@ -141,7 +141,7 @@ p
span.merge(label=label, tag='NNP' if label else span.root.tag_) span.merge(label=label, tag='NNP' if label else span.root.tag_)
matcher.add_entity('GoogleNow', on_match=merge_phrases) 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']) doc = Doc(matcher.vocab, words=[u'Google', u'Now', u'is', u'being', u'rebranded'])
matcher(doc) matcher(doc)
print([w.text for w in doc]) print([w.text for w in doc])