mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Fix syntax error
This commit is contained in:
parent
ce63f8997b
commit
49b1e48bf5
|
@ -114,7 +114,7 @@ def read_vectors(vectors_loc):
|
|||
pieces = line.rsplit(' ', vectors_data.shape[1]+1)
|
||||
word = pieces.pop(0)
|
||||
if len(pieces) != vectors_data.shape[1]:
|
||||
raise ValueError(Errors.E094.format(line_num=i, loc=vectors_loc)
|
||||
raise ValueError(Errors.E094.format(line_num=i, loc=vectors_loc))
|
||||
vectors_data[i] = numpy.asarray(pieces, dtype='f')
|
||||
vectors_keys.append(word)
|
||||
return vectors_data, vectors_keys
|
||||
|
|
Loading…
Reference in New Issue
Block a user