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

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

Open
nanbobike opened this issue Apr 10, 2023 · 0 comments

Comments

@nanbobike
Copy link

这几个路径中的文件没有找到 具体应该怎么解决
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.

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

1 participant