You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using no-short version is ok: sacrebleu -t wmt14/full -l en-de --metric ter < detok.de
TER+lang.en-de+test.wmt14/full+tok.tercom-nonorm-punct-noasian-uncased+version.1.4.14 = XX
But short verision meets the bug: sacrebleu --short -t wmt14/full -l en-de --metric ter < detok.de
Traceback (most recent call last):
File "/root/miniconda2/envs/torch1.4/bin/sacrebleu", line 33, in
sys.exit(load_entry_point('sacrebleu==1.4.14', 'console_scripts', 'sacrebleu')())
File "/root/miniconda2/envs/torch1.4/lib/python3.7/site-packages/sacrebleu-1.4.14-py3.7.egg/sacrebleu/sacrebleu.py", line 319, in main
print(score.format(args.width, args.score_only, metric.signature))
File "/root/miniconda2/envs/torch1.4/lib/python3.7/site-packages/sacrebleu-1.4.14-py3.7.egg/sacrebleu/metrics/ter.py", line 80, in format
prefix = "{}+{}".format(self.prefix, signature) if signature else self.prefix
File "/root/miniconda2/envs/torch1.4/lib/python3.7/site-packages/sacrebleu-1.4.14-py3.7.egg/sacrebleu/metrics/base.py", line 50, in str
final_name = self._abbr[name] if self.short else name
KeyError: 'tok'
The text was updated successfully, but these errors were encountered:
This commit incorporates several bugfixes and API improvements for the upcoming release
- TER: Correctly handle the --short option (#131)
- sacrebleu: use correct method with sacrelogger
- Update docstrings for bleu methods
- BLEU: Change default value for `floor` smoothing to 0.1 (#129)
- test: fix test case for the floor param changes
- Use 'exp' smoothing for compat.sentence_bleu() (#98)
- Bleu: add smoothing value to signature (#98)
- dataset: Fix IWSLT links (#128)
- API: move __repr__() to BaseScore
- Change version to 1.5.0, update Changelog
* compat: let raw_corpus_bleu() use the floor default value
Using no-short version is ok:
sacrebleu -t wmt14/full -l en-de --metric ter < detok.de
TER+lang.en-de+test.wmt14/full+tok.tercom-nonorm-punct-noasian-uncased+version.1.4.14 = XX
But short verision meets the bug:
sacrebleu --short -t wmt14/full -l en-de --metric ter < detok.de
Traceback (most recent call last):
File "/root/miniconda2/envs/torch1.4/bin/sacrebleu", line 33, in
sys.exit(load_entry_point('sacrebleu==1.4.14', 'console_scripts', 'sacrebleu')())
File "/root/miniconda2/envs/torch1.4/lib/python3.7/site-packages/sacrebleu-1.4.14-py3.7.egg/sacrebleu/sacrebleu.py", line 319, in main
print(score.format(args.width, args.score_only, metric.signature))
File "/root/miniconda2/envs/torch1.4/lib/python3.7/site-packages/sacrebleu-1.4.14-py3.7.egg/sacrebleu/metrics/ter.py", line 80, in format
prefix = "{}+{}".format(self.prefix, signature) if signature else self.prefix
File "/root/miniconda2/envs/torch1.4/lib/python3.7/site-packages/sacrebleu-1.4.14-py3.7.egg/sacrebleu/metrics/base.py", line 50, in str
final_name = self._abbr[name] if self.short else name
KeyError: 'tok'
The text was updated successfully, but these errors were encountered: