From a069f94f8f7ab40f8bd0b58b987e877c64df42aa Mon Sep 17 00:00:00 2001 From: Junpei Kawamoto Date: Tue, 16 Jul 2024 01:06:32 -0600 Subject: [PATCH] Fix lint errors --- sacrebleu/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sacrebleu/utils.py b/sacrebleu/utils.py index cddc3a7..0411d91 100644 --- a/sacrebleu/utils.py +++ b/sacrebleu/utils.py @@ -612,7 +612,7 @@ def print_subset_results(metrics, full_system, full_refs, args): key = f'origlang={origlang}' if subset is None: - key += f' domain=ALL' + key += ' domain=ALL' elif subset.startswith('country:'): key += f' country={subset[8:]}' else: @@ -630,4 +630,4 @@ def print_subset_results(metrics, full_system, full_refs, args): print(f'{key}: sentences={n_system:<6} {score.name:<{max_metric_width}} = {score.score:.{w}f}') # import at the end to avoid circular import -from .dataset import DATASETS, SUBSETS, DOMAINS, COUNTRIES # noqa: E402 +from .dataset import DATASETS, SUBSETS # noqa: E402