机器学习实战第四章
emailText = open('email/ham/6.txt').read()
出现以下错误
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 884: invalid start byte
修改如下
emailText = open('email/ham/6.txt',encoding='utf-8',errors='ignore').read()
参考:stackoverflow