标签: python python-3.x nlp spacy
我有utf 8编码的文本文件..并且我正在处理spacy 当我输入这个
nlp = spacy.load('en') doc = nlp(open("textd.txt").read().decode('utf8'))
我收到此错误
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 11: character maps to <undefined>