From dc7a0163e2371479ce9aca986583a05367497f63 Mon Sep 17 00:00:00 2001 From: Konstantin Chernyshev Date: Thu, 16 Nov 2023 18:49:28 +0100 Subject: [PATCH] style: fix ruff --- codebleu/bleu.py | 3 --- codebleu/weighted_ngram_match.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/codebleu/bleu.py b/codebleu/bleu.py index 8db2e7a..5bb2c9a 100644 --- a/codebleu/bleu.py +++ b/codebleu/bleu.py @@ -9,10 +9,7 @@ """BLEU score implementation.""" import math -import sys -import warnings from collections import Counter -from typing import Any from .utils import ngrams diff --git a/codebleu/weighted_ngram_match.py b/codebleu/weighted_ngram_match.py index 3f37914..d651d7c 100644 --- a/codebleu/weighted_ngram_match.py +++ b/codebleu/weighted_ngram_match.py @@ -13,11 +13,8 @@ """BLEU score implementation.""" import math -import sys -import warnings from collections import Counter -from .bleu import modified_precision from .utils import ngrams