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

NER 中crf的状态特征错误的加上了非线性激活 #474

Closed
lcy-seso opened this issue Nov 16, 2017 · 0 comments · Fixed by #473
Closed

NER 中crf的状态特征错误的加上了非线性激活 #474

lcy-seso opened this issue Nov 16, 2017 · 0 comments · Fixed by #473
Labels

Comments

@lcy-seso
Copy link
Collaborator

  • 在NER的例子中,调用 crf 层之前依赖于首先通过 fc 层计算状态特征。
  • CRF 层在内部会计算状态特征和转移特征的exponetials,并进行全局归一化。因此,fc 层在计算状态特征时不应该使用任何非线性激活。
  • paddle.layer.fc默认激活函数是 tanh,让crf的状态特征计算“意外”地加上了非线性激活。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant