mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
* Fix use of io in strings.pyx
This commit is contained in:
parent
ec874247b5
commit
2153067958
|
@ -131,7 +131,7 @@ cdef class StringStore:
|
|||
cdef Utf8Str* string
|
||||
cdef unicode py_string
|
||||
cdef int i
|
||||
with io.open(loc, 'w', 'utf8') as file_:
|
||||
with io.open(loc, 'w', encoding='utf8') as file_:
|
||||
for i in range(1, self.size):
|
||||
string = &self.c[i]
|
||||
py_string = _decode(string)
|
||||
|
|
Loading…
Reference in New Issue
Block a user