DashAI.back.metrics.Ter
- class Ter[source]
A class for calculating TER scores between source and target sentences.
TER (Translation Edit Rate, also called Translation Error Rate) is a metric to quantify the edit operations requiered to match a reference translation.
References
[1] https://huggingface.co/spaces/evaluate-metric/ter
- __init__()
Methods
__init__
()score
(source_sentences, target_sentences)Calculate the TER score between source and target sentences.
Attributes
COMPATIBLE_COMPONENTS
TYPE