Hi guys, I 'm really appreciated for the algorithms you have provided.
Could you please use utf-8 encoding everywhere?
E.g., FastText.py, 16-17 lines should be the following:
self.class_list = [x.strip() for x in open(
dataset + '/data/class.txt', **encoding='utf-8'**).readlines()]
Otherwise I get the expected error:
dataset + '/data/class.txt').readlines()] # 类别名单
File "C:\Python37\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 51: character maps to <undefined>
Hi guys, I 'm really appreciated for the algorithms you have provided.
Could you please use utf-8 encoding everywhere? E.g., FastText.py, 16-17 lines should be the following:
Otherwise I get the expected error:
Could you please add it to each algorithm?