mirror of https://github.com/explosion/spaCy.git
Fix encoding of path variable
This commit is contained in:
parent
af847e07fc
commit
df88690177
|
@ -241,6 +241,8 @@ cdef class Vocab:
|
|||
return tokens
|
||||
|
||||
def dump(self, loc):
|
||||
if hasattr(loc, 'as_posix'):
|
||||
loc = loc.as_posix()
|
||||
cdef bytes bytes_loc = loc.encode('utf8') if type(loc) == unicode else loc
|
||||
|
||||
cdef CFile fp = CFile(bytes_loc, 'wb')
|
||||
|
|
Loading…
Reference in New Issue