simulstream.metrics.stats.NormalizedErasure
- class simulstream.metrics.stats.NormalizedErasure
Bases:
StatsCompute the Normalized Erasure metric.
This measures the amount of flickering in retranslation, as defined in `Arivazhagan et al., “Re-translation versus Streaming for Simultaneous Translation”
IWSLT 2020 <https://aclanthology.org/2020.iwslt-1.27/>`_.
It is defined as the ratio:
\[\text{Normalized Erasure} = \frac{\text{# Deleted Tokens}}{\text{# Final Generated Tokens}}\]- __init__()
Methods
__init__()compute(log_reader)Compute the value of the statistic.
The human-readable explanation of the statistic.
name()The unique name of the statistic.