Class UnsupervisedQualityEstimator

Inheritance Relationships

Base Type

Class Documentation

class UnsupervisedQualityEstimator : public marian::bergamot::QualityEstimator

Unsupervised Quality Estimator model.

It uses the translator model’s log probabilities (log probs) as a proxy for quality scores. Then, for a given word, its quality score is computed by taking the mean of the log probs of the tokens that make it up. The sentence score is the mean of all word’s log probs.

Public Functions

void computeQualityScores(const Histories &histories, Response &response) const

Computes quality-scores using values from Histories and subword tokens which comes from Response.

Parameters
  • [in] histories: Histories obtained from translating a blob of source-text

  • [in] response: Partially constructed response, holding tokenization info for source and target. The quality-scores for each sentence obtained from source-text blob are written out as SentenceQualityEstimate into response.