mirror of https://github.com/explosion/spaCy.git
* Add false positive test for emoticons
This commit is contained in:
parent
f15deaad5b
commit
6369835306
|
@ -27,3 +27,9 @@ def test_tweebo_challenge():
|
|||
assert tokens[19].string == '")'
|
||||
assert tokens[20].string == ':>'
|
||||
assert tokens[21].string == '....'
|
||||
|
||||
|
||||
def test_false_positive():
|
||||
text = "example:)"
|
||||
tokens = EN.tokenize(text)
|
||||
assert len(tokens) == 3
|
||||
|
|
Loading…
Reference in New Issue