Class UnsupervisedQualityEstimator¶
Defined in File quality_estimator.h
Inheritance Relationships¶
Base Type¶
public marian::bergamot::QualityEstimator
(Class QualityEstimator)
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.
-
void