mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Tiny code typo
This commit is contained in:
parent
505f31f2bf
commit
acdd2fc9a6
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user