HillZhang1999 / MuCGEC

MuCGEC中文纠错数据集及文本纠错SOTA模型开源;Code & Data for our NAACL 2022 Paper "MuCGEC: a Multi-Reference Multi-Source Evaluation Dataset for Chinese Grammatical Error Correction"
https://aclanthology.org/2022.naacl-main.227/
Apache License 2.0
509 stars 64 forks source link

FileNotFoundError: [Errno 2] No such file or directory: './ensemble_results/3seq2edit_3seq2seq_threshold_4/MuCGEC_test.m2_temp' #42

Open nanbobike opened 1 year ago

nanbobike commented 1 year ago

这几个路径中的文件没有找到 具体应该怎么解决 sh .\ensemble.sh usage: rule_ensemble.py [-h] --result_path RESULT_PATH [RESULT_PATH ...] --output_path OUTPUT_PATH [-T THRESHOLD] rule_ensemble.py: error: argument --result_path: expected at least one argument Traceback (most recent call last): File "F:\dasixia\MuCGEC\scorers\ChERRANT\m2convertor.py", line 103, in main() File "F:\dasixia\MuCGEC\scorers\ChERRANT\m2convertor.py", line 89, in main for src_sent, edit_lines in read_file(): File "F:\dasixia\MuCGEC\scorers\ChERRANT\m2convertor.py", line 73, in read_file with open(args.f, "r", encoding="utf8") as fr: FileNotFoundError: [Errno 2] No such file or directory: './ensemble_results/3seq2edit_3seq2seq_threshold_4/MuCGEC_test.m2_temp'

FileNotFoundError: [Errno 2] No such file or directory: '../../data/train_data/lang8+hsk/train.src_only_erroneous'

sh .\pipeline.sh Traceback (most recent call last): File "F:\dasixia\MuCGEC\models\seq2seq-based-CGEC\utils.py", line 211, in convert_parallel_data_to_json_file(args[0], args[1],args[2]) File "F:\dasixia\MuCGEC\models\seq2seq-based-CGEC\utils.py", line 27, in convert_parallel_data_to_json_file with open(source_data_file, "r", encoding='utf-8') as f1: FileNotFoundError: [Errno 2] No such file or directory: '../../data/train_data/lang8+hsk/train.src_only_erroneous' Traceback (most recent call last): File "F:\dasixia\MuCGEC\models\seq2seq-based-CGEC\utils.py", line 211, in convert_parallel_data_to_json_file(args[0], args[1],args[2]) File "F:\dasixia\MuCGEC\models\seq2seq-based-CGEC\utils.py", line 27, in convert_parallel_data_to_json_file with open(source_data_file, "r", encoding='utf-8') as f1: FileNotFoundError: [Errno 2] No such file or directory: '../../data/valid_data/MuCGEC_CGED_Dev.src' Traceback (most recent call last): File "F:\dasixia\MuCGEC\models\seq2seq-based-CGEC\train.py", line 11, in import transformers File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\transformers__init.py", line 43, in from . import dependency_versions_check File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\transformers\dependency_versions_check.py", line 41, in require_version_core(deps[pkg]) File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\transformers\utils\versions.py", line 94, in require_version_core return require_version(requirement, hint) File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\transformers\utils\versions.py", line 85, in require_version if want_ver is not None and not ops[op](version.parse(got_ver), version.parse(want_ver)): File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\packaging\version.py", line 52, in parse return Version(version) File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\packaging\version.py", line 197, in init raise InvalidVersion(f"Invalid version: '{version}'") packaging.version.InvalidVersion: Invalid version: '0.10.1,<0.11' Generating... Traceback (most recent call last): File "F:\dasixia\MuCGEC\models\seq2seq-based-CGEC\predict.py", line 7, in from transformers import BartForConditionalGeneration, BertTokenizer File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\transformers__init__.py", line 43, in from . import dependency_versions_check File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\transformers\dependency_versions_check.py", line 41, in require_version_core(deps[pkg]) File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\transformers\utils\versions.py", line 94, in require_version_core return require_version(requirement, hint) File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\transformers\utils\versions.py", line 85, in require_version if want_ver is not None and not ops[op](version.parse(got_ver), version.parse(want_ver)): File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\packaging\version.py", line 52, in parse return Version(version) File "F:\dasixia\MuCGEC\venvSeq\lib\site-packages\packaging\version.py", line 197, in init__ raise InvalidVersion(f"Invalid version: '{version}'") packaging.version.InvalidVersion: Invalid version: '0.10.1,<0.11' Generating Finish! 0 minutes and 0 seconds elapsed.