* Add test for ). in tokenizer

This commit is contained in:
Matthew Honnibal 2015-01-22 22:25:18 +11:00
parent a27b23cc8f
commit 93d4bd6c2e
1 changed files with 5 additions and 0 deletions

View File

@ -110,6 +110,11 @@ def test_cnts6(EN):
words = [t.string for t in tokens]
assert len(words) == 6
def test_bracket_period(EN):
text = u'(And a 6a.m. run through Washington Park).'
tokens = EN(text)
assert tokens[len(tokens) - 1].string == u'.'
#def test_cnts7():
# text = 'But then the 6,000-year ice age came...'
# tokens = EN.tokenize(text)