From 28a208d4b0292638109c3f58c054401cf0c430aa Mon Sep 17 00:00:00 2001 From: Alexey Gorbatovski Date: Fri, 18 Oct 2024 20:22:47 +0300 Subject: [PATCH] Update turbo_alignment/metrics/registry.py Co-authored-by: Aleksey Malakhov <131314005+alekseymalakhov11@users.noreply.github.com> --- turbo_alignment/metrics/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbo_alignment/metrics/registry.py b/turbo_alignment/metrics/registry.py index f334816..e3b3681 100755 --- a/turbo_alignment/metrics/registry.py +++ b/turbo_alignment/metrics/registry.py @@ -83,7 +83,7 @@ class RougeSettings(MetricSettings): class SelfBleuSettings(MetricSettings): ngram: int = 3 - @field_validator('ngram', mode="before") + @field_validator('ngram', mode='before') def check_ngram(cls, value: int) -> int: if value <= 0: raise ValueError('ngram should be greater that 0')