TextClassify icon indicating copy to clipboard operation
TextClassify copied to clipboard

用python3训练tfidf时报错

Open snakecy opened this issue 9 years ago • 0 comments

for name in self.filenames: with open(join(name), 'r', 1000, 'utf-8') as f: tf_dict = dict()

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 0: invalid start byte

另一个demo改过来没有错误,有结果

snakecy avatar Jul 28 '16 07:07 snakecy