-
Notifications
You must be signed in to change notification settings - Fork 65
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
Some trouble when running your code #13
Comments
您好,我想问一下数据的应该是什么样的呢?不是很懂作者说的这句话,是把txt换成src,tgt吗? |
是的,或者你可以以看一下preprocess.py line 27和 line 29,加上后缀参数 |
23333这个问题之前已经解决了,chmod 777 ROUGE-1.5.5.pl就行 |
那请问可以把你处理好的saved_data传到我的邮箱吗?[email protected] ,我按着作者所说的处理方式在train的时候报错RuntimeError: Length of all samples has to be greater than 0, but found an element in 'lengths' that is <= 0,另外model里面是不是不需要loss了,我看之前的版本有最近更新之后就没有loss了 |
对,新版本的loss写进模型里了,不需要调单独的loss。你可以检查下是不是数据里面有空行 |
Traceback (most recent call last): |
Traceback (most recent call last): |
是不是里面有空行? |
有可能是空行的问题诶 |
“Traceback (most recent call last):
File "train.py", line 332, in
main()
File "train.py", line 324, in main
train_model(model, data, optim, i, params)
File "train.py", line 179, in train_model
score = eval_model(model, data, params)
File "train.py", line 252, in eval_model
score[metric] = getattr(utils, metric)(reference, candidate, params['log_path'], params['log'], config)
File "/home/zhengxin/Global-Encoding/Global-Encoding-master/utils/metrics.py", line 58, in rouge
rouge_results = r.convert_and_evaluate()
File "/root/miniconda3/lib/python3.7/site-packages/pyrouge/Rouge155.py", line 361, in convert_and_evaluate
rouge_output = self.evaluate(system_id, rouge_args)
File "/root/miniconda3/lib/python3.7/site-packages/pyrouge/Rouge155.py", line 336, in evaluate
rouge_output = check_output(command).decode("UTF-8")
File "/root/miniconda3/lib/python3.7/subprocess.py", line 389, in check_output
**kwargs).stdout
File "/root/miniconda3/lib/python3.7/subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:
File "/root/miniconda3/lib/python3.7/subprocess.py", line 769, in init
restore_signals, start_new_session)
File "/root/miniconda3/lib/python3.7/subprocess.py", line 1516, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: 'RELEASE-1.5.5/ROUGE-1.5.5.pl'”
Tried in several different machine, but get the same mistake, and I'm wondering the reason QwQ.
The text was updated successfully, but these errors were encountered: