mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Add test for french tokenizer
This commit is contained in:
parent
b012ae3044
commit
c09a8ce5bb
|
@ -5,3 +5,8 @@ from ...fr import French
|
||||||
def test_load_french():
|
def test_load_french():
|
||||||
nlp = French()
|
nlp = French()
|
||||||
doc = nlp(u'Parlez-vous français?')
|
doc = nlp(u'Parlez-vous français?')
|
||||||
|
assert doc[0].text == u'Parlez'
|
||||||
|
assert doc[1].text == u'-'
|
||||||
|
assert doc[2].text == u'vouz'
|
||||||
|
assert doc[3].text == u'français'
|
||||||
|
assert doc[4].text == u'?'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user