From dd7add3f819b046234de97ffcacaa911026c703e Mon Sep 17 00:00:00 2001 From: vizzerdrix55 <49168320+vizzerdrix55@users.noreply.github.com> Date: Mon, 27 May 2019 15:38:26 +0200 Subject: [PATCH] import cPickle in Python 3 In Python 3.x the method for importing cPickle changed. This issue will fix that. (https://askubuntu.com/questions/742782/how-to-install-cpickle-on-python-3-4#814132) --- model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model.py b/model.py index 824f797f..11a35d62 100644 --- a/model.py +++ b/model.py @@ -5,7 +5,7 @@ import theano import theano.tensor as T import codecs -import cPickle +import _pickle as cPickle from utils import shared, set_values, get_name from nn import HiddenLayer, EmbeddingLayer, DropoutLayer, LSTM, forward