Closed zxyscz closed 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
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
i can run ,please ignore the message
@zxyscz I have got an error like this. Could you tell me how to solve it?
i run then run_cnn.py,but i have got an error def test(): print("Loading test data...") start_time = time.time()
run_cnn.py:145: NameError i do not change the code, how can i solve the problem