text-classification-cnn-rnn
text-classification-cnn-rnn copied to clipboard
执行run_cnn.py找不到文件?
FileNotFoundError: [Errno 2] No such file or directory: 'data/cnews\cnews.train.txt'
Make sure you've set up the data path correctly. In the run_cnn.py, the data path should be specified as data/cnews/cnews.train.txt not data/cnewscnews.train.txt. Note the use of the slash (/).
Check that the file path is correct. Verify that the data/cnews/cnews.train.txt file exists in the specified path and that the spelling and capitalization of the file name are consistent with the code.
Make sure you've downloaded and prepared the required datasets. If you don't have a cnews dataset downloaded, you can download it before running the script and place it in the data/cnews/ directory.