* Fix times test

This commit is contained in:
Matthew Honnibal 2015-04-16 04:50:40 +02:00
parent 684d0e5e85
commit 4757899370

View File

@ -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