mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-24 16:24:16 +03:00
* Add more infix tests
This commit is contained in:
parent
bd608559bc
commit
460b4c3207
|
@ -12,3 +12,19 @@ def test_period(en_tokenizer):
|
|||
assert len(tokens) == 3
|
||||
tokens = en_tokenizer('zombo.com')
|
||||
assert len(tokens) == 1
|
||||
|
||||
|
||||
def test_ellipsis(en_tokenizer):
|
||||
tokens = en_tokenizer('best...Known')
|
||||
assert len(tokens) == 3
|
||||
tokens = en_tokenizer('best...known')
|
||||
assert len(tokens) == 3
|
||||
|
||||
|
||||
def test_email(en_tokenizer):
|
||||
tokens = en_tokenizer('hello@example.com')
|
||||
assert len(tokens) == 3
|
||||
tokens = en_tokenizer('hi+there@gmail.it')
|
||||
assert len(tokens) == 3
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user