Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行run_cnn.py找不到文件? #159

Open
sanchezpipip opened this issue Jul 24, 2023 · 1 comment
Open

执行run_cnn.py找不到文件? #159

sanchezpipip opened this issue Jul 24, 2023 · 1 comment

Comments

@sanchezpipip
Copy link

FileNotFoundError: [Errno 2] No such file or directory: 'data/cnews\cnews.train.txt'

@niumaaba
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants