Skip to content
Snippets Groups Projects
Commit b346c290 authored by huangbo77's avatar huangbo77
Browse files

fixes textcnn bug

parent cc6dd3ec
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