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

Update Request: correcting the formula in GLEU+ paper #4

Open
shotakoyama opened this issue Jun 11, 2023 · 0 comments
Open

Update Request: correcting the formula in GLEU+ paper #4

shotakoyama opened this issue Jun 11, 2023 · 0 comments

Comments

@shotakoyama
Copy link

shotakoyama commented Jun 11, 2023

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?

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