mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 13:17:06 +03:00
Add regression test with non ' ' space character as token
This commit is contained in:
parent
e17dc2db75
commit
3ba109622c
14
spacy/tests/regression/test_issue834.py
Normal file
14
spacy/tests/regression/test_issue834.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
from io import StringIO
|
||||||
|
|
||||||
|
word2vec_str = """, -0.046107 -0.035951 -0.560418
|
||||||
|
de -0.648927 -0.400976 -0.527124
|
||||||
|
. 0.113685 0.439990 -0.634510
|
||||||
|
-1.499184 -0.184280 -0.598371"""
|
||||||
|
|
||||||
|
|
||||||
|
def test_issue834(en_vocab):
|
||||||
|
f = StringIO(word2vec_str)
|
||||||
|
vector_length = en_vocab.load_vectors(f)
|
||||||
|
assert vector_length == 3
|
Loading…
Reference in New Issue
Block a user