Score API
-
class bocoel.models.scores.NltkBleuScore(*args, **kwargs)[source]
-
class bocoel.models.scores.SacreBleuScore[source]
-
__init__() → None[source]
-
class bocoel.models.scores.ExactMatch(*args, **kwargs)[source]
-
class bocoel.models.scores.Score(*args, **kwargs)[source]
-
__init__(*args, **kwargs)
-
class bocoel.models.scores.MultiChoiceAccuracy(*args, **kwargs)[source]
-
class bocoel.models.scores.OneHotChoiceAccuracy(*args, **kwargs)[source]
-
class bocoel.models.scores.RougeScore(metric: Literal['rouge-1', 'rouge-2', 'rouge-l'])[source]
-
__init__(metric: Literal['rouge-1', 'rouge-2', 'rouge-l']) → None[source]
-
class bocoel.models.scores.RougeScore2(typ: Literal['rouge1', 'rouge2', 'rougeL'])[source]
-
__init__(typ: Literal['rouge1', 'rouge2', 'rougeL']) → None[source]