mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 02:16:32 +03:00
* Add a couple more contractions tests
This commit is contained in:
parent
9f17467c2e
commit
8f2f319c57
|
@ -39,3 +39,10 @@ def test_capitalized():
|
||||||
tokens = EN.tokenize("Ain't")
|
tokens = EN.tokenize("Ain't")
|
||||||
assert len(tokens) == 2
|
assert len(tokens) == 2
|
||||||
assert tokens[0].string == "Are"
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user