* Add a couple more contractions tests

This commit is contained in:
Matthew Honnibal 2014-12-07 22:08:04 +11:00
parent 9f17467c2e
commit 8f2f319c57

View File

@ -39,3 +39,10 @@ def test_capitalized():
tokens = EN.tokenize("Ain't")
assert len(tokens) == 2
assert tokens[0].string == "Are"
def test_punct():
tokens = EN.tokenize("We've")
assert len(tokens) == 2
tokens = EN.tokenize("``We've")
assert len(tokens) == 3