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

数据问题 #41

Open
echois123 opened this issue Oct 26, 2021 · 2 comments
Open

数据问题 #41

echois123 opened this issue Oct 26, 2021 · 2 comments

Comments

@echois123
Copy link

请问我按BEMS打标替换数据之后,在计算召回率时报错division by zero是怎么回事呀,这个数据格式有什么要求吗

@550952213
Copy link

遇到同样的问题,在crf模型上。bilstm模型照常跑

@Renge3
Copy link

Renge3 commented Dec 14, 2022

请问我按BEMS打标替换数据之后,在计算召回率时报错division by zero是怎么回事呀,这个数据格式有什么要求吗

可以在计算的分母部分加上一个非常小的数字来避免分母为0。在evaluating.py中,作者在计算f1的时候在分母加了一个1e-10,但是算precision和recall的时候就没有,都加上之后就没这个问题了。

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

3 participants