taishan1994 / SpERT_chinese

基于论文SpERT: "Span-based Entity and Relation Transformer"的中文关系抽取,同时抽取实体、实体类别和关系类别。
MIT License
29 stars 6 forks source link

UnicodeDecodeError: 'gbk' codec can't decode byte 0xa7 in position 257: illegal multibyte sequence #10

Open lqq688 opened 6 months ago

lqq688 commented 6 months ago

UnicodeDecodeError: 'gbk' codec can't decode byte 0xa7 in position 257: illegal multibyte sequence

taishan1994 commented 6 months ago

文件编码问题

lqq688 commented 6 months ago

编码是UTF-8但是还是这样报错

lqq688 commented 6 months ago

![Uploading image.png…]()

taishan1994 commented 6 months ago

with open("", "r", encoding="utf-8") as fp: