We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The GLEU+ paper (https://arxiv.org/pdf/1605.02592.pdf) shows that the formula of precision $p_k$ is:
$$ p_n = \cfrac{ \displaystyle \sum_i^{|D|} \sum_{g_n \in h_i} \min(\rho_{i,g_n}, \eta_{i, g_n}) - \max(0, \min(\sigma_{i, g_n}, \eta_{i, g_n}) - \min(\rho_{i, g_n}, \eta_{i, g_n}))} {\displaystyle \sum_i^{|D|} \sum_{g_n \in h_i} \eta_{i, g_n} } $$
However, GLEU+ in your source code is:
$$ p_n = \cfrac{ \displaystyle \sum_i^{|D|} \max(0, \sum_{g_n \in h_i} \min(\rho_{i,g_n}, \eta_{i, g_n}) - \min(\sigma_{i, g_n}^{\mathrm{diff}}, \eta_{i, g_n})) } {\displaystyle \sum_i^{|D|} \sum_{g_n \in h_i} \eta_{i, g_n} } $$
(notation: $\sigma_{i,g_n}=\mathrm{count}(g_n \in s_i)$, $\rho_{i,g_n}=\mathrm{count}(g_n \in r_i)$, $\eta_{i,g_n}=\mathrm{count}(g_n \in h_i)$, $\sigma_{i,g_n}^{\mathrm{diff}}=\sigma_{i,g_n}$ if $\rho_{i,g_n}=0$ else $0$)
Could you provide an update on the formula explanation?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The GLEU+ paper (https://arxiv.org/pdf/1605.02592.pdf) shows that the formula of precision$p_k$ is:
However, GLEU+ in your source code is:
(notation:$\sigma_{i,g_n}=\mathrm{count}(g_n \in s_i)$ , $\rho_{i,g_n}=\mathrm{count}(g_n \in r_i)$ , $\eta_{i,g_n}=\mathrm{count}(g_n \in h_i)$ , $\sigma_{i,g_n}^{\mathrm{diff}}=\sigma_{i,g_n}$ if $\rho_{i,g_n}=0$ else $0$ )
Could you provide an update on the formula explanation?
The text was updated successfully, but these errors were encountered: