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

MacroF and MicroF integration to version 2.0 #163

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

thammegowda
Copy link
Contributor

Updated #153 to version 2.0.0
Implementation of MacroF and MicroF used in "Macro-average rare types are important too paper" https://aclanthology.org/2021.naacl-main.90/

@thammegowda
Copy link
Contributor Author

Here is a sample output

$ sacrebleu -m bleu macrof -lc dev.ref  < dev.sys1-002.hyp.txt
[
{
 "name": "BLEU",
 "score": 31.4,
 "signature": "nrefs:1|case:lc|eff:no|tok:13a|smooth:exp|version:2.0.0",
 "verbose_score": "67.0/40.0/26.1/17.6 (BP = 0.942 ratio = 0.943 hyp_len = 63220 ref_len = 67012)",
 "nrefs": "1",
 "case": "lc",
 "eff": "no",
 "tok": "13a",
 "smooth": "exp",
 "version": "2.0.0"
},
{
 "name": "MacroF1",
 "score": 34.9,
 "signature": "nrefs:1|case:lc|tok:13a|ngram:1|smooth:1.add-k|version:2.0.0",
 "nrefs": "1",
 "case": "lc",
 "tok": "13a",
 "ngram": "1",
 "smooth": "1.add-k",
 "version": "2.0.0",
 "precision": 63.1,
 "recall": 58.8,
 "len_ratio": 0.943,
 "hyp_len": 63220,
 "ref_len": 67012,
 "verbose_score": "precision = 63.1 recall = 58.8 len_ratio = 0.943 hyp_len = 63220 ref_len = 67012"
}
]

$ sacrebleu -m bleu macrof -lc dev.ref --format text < dev.sys1-002.hyp.txt
        BLEU|nrefs:1|case:lc|eff:no|tok:13a|smooth:exp|version:2.0.0 = 31.4 67.0/40.0/26.1/17.6 (BP = 0.942 ratio = 0.943 hyp_len = 63220 ref_len = 67012)
MacroF1|nrefs:1|case:lc|tok:13a|ngram:1|smooth:1.add-k|version:2.0.0 = 34.9 precision = 63.1 recall = 58.8 len_ratio = 0.943 hyp_len = 63220 ref_len = 67012

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

Successfully merging this pull request may close these issues.

1 participant