We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题
Mac git clone 下来的评论语料乱码 如下所示
➜ neg git:(master) ✗ head neg.0.txt ����̫�� ���仹����3�ǵ� ������ʩ�dz��¾�.����Ƶ���ϵı�����¸���.
解决
#读取文件内容 def getContent(fullname): - f = codecs.open(fullname, 'r') + f = codecs.open(fullname, 'r', encoding="gbk", errors="ignore")
The text was updated successfully, but these errors were encountered:
good
Sorry, something went wrong.
nice
beauti
No branches or pull requests
问题
Mac git clone 下来的评论语料乱码 如下所示
解决
The text was updated successfully, but these errors were encountered: