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

similarity calculation #81

Open
BudBudding opened this issue Jan 15, 2024 · 1 comment
Open

similarity calculation #81

BudBudding opened this issue Jan 15, 2024 · 1 comment
Labels
discussion Discussion on DocEE and SentEE

Comments

@BudBudding
Copy link

非常感谢您的工作!关于您的工作中similarity calculation这个图的生成
图片
请问是怎么获得的哇

@BudBudding BudBudding added the discussion Discussion on DocEE and SentEE label Jan 15, 2024
@Spico197
Copy link
Owner

嗨您好,感谢您对本项目的关注~

论文中的图是一个示意图,可以根据需要编一个case,然后参考这里的代码进行绘制:https://matplotlib.org/stable/gallery/images_contours_and_fields/image_annotated_heatmap.html#sphx-glr-gallery-images-contours-and-fields-image-annotated-heatmap-py

如果是需要真实case的具体值,则需要hook这里的代码(比如print一下啥的),打印中间值:

torch.sigmoid(scores).ge(self.config.biaffine_hard_threshold).long()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion on DocEE and SentEE
Projects
None yet
Development

No branches or pull requests

2 participants