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

关于nmt.py文件中的变量 #1

Open
lanyangyang93 opened this issue May 18, 2020 · 1 comment
Open

关于nmt.py文件中的变量 #1

lanyangyang93 opened this issue May 18, 2020 · 1 comment

Comments

@lanyangyang93
Copy link

在nmt.py 134行至137行 中存在变量featureListAttn,xf,[attentions_eos[i]]未定义
if isinstance(fl,featureListAttn):
fe =fl.getFeatures(xf, result_eos[i], [attentions_eos[i]])
else:
fe =fl.getFeatures(xf, result_eos[i])
请问这三个变量含义,如何修改该错误 谢谢!

@Glaceon31
Copy link
Contributor

你好,谢谢你对这篇工作的关注。因为这个代码比较久远,我需要再检查一下代码。看起来这个bug涉及的是rerank部分,你可以先试试把rerank设置成false运行。

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