Skip to content
Snippets Groups Projects
Commit dfe2547c authored by i-robot's avatar i-robot Committed by Gitee
Browse files

!93 Fixes textcnn bug

Merge pull request !93 from huangbo/master
parents cc6dd3ec b346c290
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ class MovieReview(DataProcessor):
self.Pos = []
self.Neg = []
for filename in self.files:
with codecs.open(filename, 'r') as f:
with codecs.open(filename, 'r', 'Latin1') as f:
ff = f.read()
with codecs.open(filename, 'w', 'utf-8') as file_object:
file_object.write(ff)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment