mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +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 var in variants:
|
||||||
for space in spaces:
|
for space in spaces:
|
||||||
string = u"The meeting was at %s%s%s wasn't it?" % (num, space, var)
|
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)
|
assert tokens[4].orth_ == '%s%s%s' % (num, space, var)
|
||||||
ents = list(tokens.ents)
|
ents = list(tokens.ents)
|
||||||
assert len(ents) == 1
|
assert len(ents) == 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user