gaussic / text-classification-cnn-rnn

CNN-RNN中文文本分类,基于TensorFlow
MIT License
4.16k stars 1.47k forks source link

run run_cnn.py is error #123

Closed zxyscz closed 5 years ago

zxyscz commented 5 years ago

i run then run_cnn.py,but i have got an error def test(): print("Loading test data...") start_time = time.time()

  x_test, y_test = process_file(test_dir, word_to_id, cat_to_id, config.seq_length)

E NameError: name 'word_to_id' is not defined

run_cnn.py:145: NameError i do not change the code, how can i solve the problem

zxyscz commented 5 years ago

i can run ,please ignore the message

Quark-own commented 4 years ago

@zxyscz I have got an error like this. Could you tell me how to solve it?