mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix times test
This commit is contained in:
parent
684d0e5e85
commit
4757899370
|
@ -14,7 +14,7 @@ def test_am_pm():
|
|||
for var in variants:
|
||||
for space in spaces:
|
||||
string = u"The meeting was at %s%s%s wasn't it?" % (num, space, var)
|
||||
tokens = NLU(string)
|
||||
tokens = NLU(string, merge_mwes=True)
|
||||
assert tokens[4].orth_ == '%s%s%s' % (num, space, var)
|
||||
ents = list(tokens.ents)
|
||||
assert len(ents) == 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user