我有一个csv文件,它有4列之一,即tweet_id、label、topic、text。在其中一行中,“文本”列的值为:
I'm wit chu!! “@ShayDiddy: Officially boycotting @ups!!! Calling @apple to curse them out next for using them wasting my time!â€
我使用此代码导入数据:
^{pr2}$此行未添加到列表TrainingData,我收到一个错误:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6: ordinal not in range(128)
TrainingData列表拥有所有预期的元素,直到循环到达上面提到的带有“text”的行。我在谷歌上搜索这个错误,但找不到对我有用的解决方案。请帮忙。在
目前没有回答
相关问题 更多 >
编程相关推荐