Function marian::bergamot::createQualityEstimator¶
Defined in File quality_estimator.h
Function Documentation¶
-
std::shared_ptr<QualityEstimator>
marian::bergamot::createQualityEstimator(const AlignedMemory &qualityFileMemory)¶ createQualityEstimator model takes an
AlignedMemory, which is the return fromgetQualityEstimatorModel.getQualityEstimatorModelcontains two different implementations, one when thequalityargument has some value as a possibleOptionsand where it does not.If a non
qualityoption is provided, then by default, it uses the UnsupervisedQualityEstimator implementation.If a value is passed to the
qualityargument, the model file is read and converted into anAlignedMemorystructure, which instantiates a QualityEstimator object.- Parameters
[in] qualityFileMemory: AnAlignedMemorywhich is created by parsing a QE model binary file through getQualityEstimatorModel