尝试去训练数据集,执行py文件报错说缺少文件,怎么解决? #346
Unanswered
forevercc0303
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
python3 preprocess.py
Traceback (most recent call last):
File "preprocess.py", line 201, in
main()
File "preprocess.py", line 188, in main
test_lst = proc_test_set(sighan15_dir)
File "preprocess.py", line 101, in proc_test_set
with open(os.path.join(fp, 'SIGHAN15_CSC_TestInput.txt'), 'r', encoding='utf-8') as f:
File "/usr/local/lib/python3.7/codecs.py", line 904, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/site-packages/pycorrector/macbert/../data/cn/sighan_2015/SIGHAN15_CSC_TestInput.txt'
python3 train.py
Traceback (most recent call last):
File "train.py", line 131, in
main()
File "train.py", line 55, in main
cfg = args_parse()
File "train.py", line 38, in args_parse
cfg.merge_from_file(config_file)
File "/usr/local/lib/python3.7/site-packages/yacs/config.py", line 211, in merge_from_file
with open(cfg_filename, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'train_macbert4csc.yml'
Beta Was this translation helpful? Give feedback.
All reactions