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