mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 13:17:06 +03:00
Fix test for 605
This commit is contained in:
parent
36bcd46244
commit
3ea15b257f
|
@ -17,8 +17,8 @@ def test_matcher_accept():
|
||||||
]
|
]
|
||||||
matcher = Matcher(doc.vocab)
|
matcher = Matcher(doc.vocab)
|
||||||
|
|
||||||
matcher.add_entity('Sport_Equipment', acceptor=return_false)
|
matcher.add_entity(u'Sport_Equipment', acceptor=return_false)
|
||||||
matcher.add_pattern("Sport_Equipment", golf_pattern)
|
matcher.add_pattern(u"Sport_Equipment", golf_pattern)
|
||||||
match = matcher(doc)
|
match = matcher(doc)
|
||||||
|
|
||||||
assert match == []
|
assert match == []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user