When I try to implement lstm_attentio.py I get an error as such,
Traceback (most recent call last):
File "lstm_Attention.py", line 39, in
en_shape=np.shape(train_data["article"][0])
NameError: name 'train_data' is not defined
In the function word2vecmodel, the model that is saved as word2vec throws error that it’s not UTF-8 encoded. Saving disabled.
FYI I’m running the code using Jupyter notebook. Thanks in advance. Let me know if I’m doing something wrong.
local variables 'filenames' referenced before assignment in cnn_daily_load.py
Also, should the location be pointing to questions folder like below: CNN_data="C:\Users\moseli\Documents\Masters of Information technology\Masters project\text mining\data\new CNN\cnn\questions"
decoder_inputs = Input(shape=(None,de_shape[1]))
While executing lstm_attention.py
I got an error regarding the shape of the decoder_inputs .
It is saying that not to give None and showing it incompatible types .
please help regarding this
.