Class SacreBleuValidator¶
Defined in File validator.h
Inheritance Relationships¶
Base Type¶
public marian::Validator< data::Corpus, models::IModel >
(Template Class Validator)
Class Documentation¶
-
class
SacreBleuValidator
: public marian::Validator<data::Corpus, models::IModel>¶ Public Functions
-
SacreBleuValidator
(std::vector<Ptr<Vocab>> vocabs, Ptr<Options> options, const std::string &metric)¶
-
virtual
~SacreBleuValidator
()¶
-
float
validate
(const std::vector<Ptr<ExpressionGraph>> &graphs, Ptr<const TrainingState> state)¶
Protected Functions
-
template<typename
T
>
voidupdateStats
(std::vector<float> &stats, const std::vector<T> &cand, const std::vector<T> &ref)¶
-
void
updateStats
(std::vector<float> &stats, const Words &cand, const Ptr<data::Batch> batch, size_t no)¶
-
virtual float
validateBG
(const std::vector<Ptr<ExpressionGraph>>&)¶
-