jiegzhan / multi-class-text-classification-cnn-rnn

Classify Kaggle San Francisco Crime Description into 39 classes. Build the model with CNN, RNN (GRU and LSTM) and Word Embeddings on Tensorflow.
https://www.kaggle.com/c/sf-crime/data
Apache License 2.0
599 stars 262 forks source link

AttributeError and IndexError #10

Open danielduckworth opened 7 years ago

danielduckworth commented 7 years ago

Hi, I'm getting some errors with Tensorflow 1.0

I ran the tensorflow upgrade script. This fixed the argument order error for concat.

However now I get:

AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'rnn_cell'.

I understand that rnn_cell was moved to tf.contrib.

If I change rnn_cell to tf.contrib I get the following error:

IndexError: list index out of range

SidrahJunaid commented 7 years ago

Im also getting the error list index out of range

helloWVV commented 6 years ago

Do you fix it?