mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 02:16:32 +03:00
* Add test for hyphenation problem in Issue #302
This commit is contained in:
parent
d249e2f7f3
commit
9c73983bdd
|
@ -32,3 +32,9 @@ def test_email(en_tokenizer):
|
||||||
assert len(tokens) == 1
|
assert len(tokens) == 1
|
||||||
|
|
||||||
|
|
||||||
|
def test_double_hyphen(en_tokenizer):
|
||||||
|
tokens = en_tokenizer(u'No decent--let alone well-bred--people.')
|
||||||
|
assert tokens[0].text == u'No'
|
||||||
|
assert tokens[1].text == u'decent'
|
||||||
|
assert tokens[2].text == u'--'
|
||||||
|
assert tokens[3].text == u'let'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user