質問編集履歴
1
トレースバックと実行環境を記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -172,8 +172,50 @@
|
|
172
172
|
|
173
173
|
該当コードを実行したところ、
|
174
174
|
|
175
|
+
`実行ファイル ./download.sh
|
176
|
+
|
177
|
+
Prepare for IMDB
|
178
|
+
|
179
|
+
Prepare script is running...
|
180
|
+
|
181
|
+
Traceback (most recent call last):
|
182
|
+
|
183
|
+
File "preprocess.py", line 79, in <module>
|
184
|
+
|
185
|
+
prepare_imdb()
|
186
|
+
|
187
|
+
File "preprocess.py", line 55, in prepare_imdb
|
188
|
+
|
189
|
+
imdb_validation_pos_start_id)
|
190
|
+
|
191
|
+
File "preprocess.py", line 24, in load_file
|
192
|
+
|
193
|
+
words = read_text(filename.strip())
|
194
|
+
|
195
|
+
File "preprocess.py", line 11, in read_text
|
196
|
+
|
197
|
+
for line in f:
|
198
|
+
|
199
|
+
File "/Users/hogehoge/anaconda3/lib/python3.6/encodings/ascii.py", line 26, in decode
|
200
|
+
|
201
|
+
return codecs.ascii_decode(input, self.errors)[0]
|
202
|
+
|
175
|
-
|
203
|
+
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 399: ordinal not in range(128)`
|
176
204
|
|
177
205
|
がでました
|
178
206
|
|
207
|
+
|
208
|
+
|
209
|
+
環境は
|
210
|
+
|
211
|
+
`OS Mac Mojave
|
212
|
+
|
213
|
+
Python 3.6.5 :: Anaconda, Inc.
|
214
|
+
|
215
|
+
`
|
216
|
+
|
217
|
+
です
|
218
|
+
|
219
|
+
|
220
|
+
|
179
221
|
どのように修正すれば実行されるでしょうか
|