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

关于context-base strategy的疑问 #19

Closed
Lucas-Yang1 opened this issue Apr 27, 2022 · 0 comments
Closed

关于context-base strategy的疑问 #19

Lucas-Yang1 opened this issue Apr 27, 2022 · 0 comments

Comments

@Lucas-Yang1
Copy link

我想请问一下,当文本过长的时候(超过512的时候)如何计算$A_i^S$。(Entity对文本的attention_weight)

  • 直接将超过长度的部分attention_weight设为0
  • 只计算512长度部分的attention_weight(将长句子分成每个部分都是512的长度。“有重叠部分"),然后只算Entity对当前截断句子的attention_weight。

感谢您的答疑!:)

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