* Add test for open apostrophe bug

This commit is contained in:
Matthew Honnibal 2014-07-07 23:24:20 +02:00
parent 571808a274
commit bc6c1f6156

View File

@ -48,3 +48,10 @@ def test_three_same_open(open_puncts):
assert len(tokens) == 4
assert unhash(lex_of(tokens[0])) == p
assert unhash(lex_of(tokens[3])) == word_str
def test_open_appostrophe():
string = "'The"
tokens = expand_chunk(lookup(string))
assert len(tokens) == 2
assert unhash(lex_of(tokens[0])) == "'"