Fix unicode regex for Python 2 (see #834)

This commit is contained in:
ines 2017-02-16 23:49:54 +01:00
parent 44de3c7642
commit aa92d4e9b5

View File

@ -472,7 +472,7 @@ cdef class Vocab:
cdef int32_t vec_len = -1
cdef double norm = 0.0
whitespace_pattern = re.compile(r'\s')
whitespace_pattern = re.compile(r'\s', re.UNICODE)
for line_num, line in enumerate(file_):
pieces = line.split()