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
.getQualityEstimatorModel
contains two different implementations, one when thequality
argument has some value as a possibleOptions
and where it does not.If a non
quality
option is provided, then by default, it uses the UnsupervisedQualityEstimator implementation.If a value is passed to the
quality
argument, the model file is read and converted into anAlignedMemory
structure, which instantiates a QualityEstimator object.- Parameters
[in] qualityFileMemory
: AnAlignedMemory
which is created by parsing a QE model binary file through getQualityEstimatorModel