Class ScorerWrapper¶
Defined in File scorers.h
Inheritance Relationships¶
Base Type¶
public marian::Scorer
(Class Scorer)
Class Documentation¶
-
class
ScorerWrapper
: public marian::Scorer¶ Public Functions
-
ScorerWrapper
(Ptr<models::IModel> encdec, const std::string &name, float weight, std::vector<io::Item> &items)¶
-
ScorerWrapper
(Ptr<models::IModel> encdec, const std::string &name, float weight, const std::string &fname)¶
-
virtual
~ScorerWrapper
()¶
-
virtual void
init
(Ptr<ExpressionGraph> graph)¶
-
virtual void
clear
(Ptr<ExpressionGraph> graph)¶
-
virtual Ptr<ScorerState>
startState
(Ptr<ExpressionGraph> graph, Ptr<data::CorpusBatch> batch)¶
-
virtual Ptr<ScorerState>
step
(Ptr<ExpressionGraph> graph, Ptr<ScorerState> state, const std::vector<IndexType> &hypIndices, const Words &words, const std::vector<IndexType> &batchIndices, int beamSize)¶
-
virtual void
setShortlistGenerator
(Ptr<const data::ShortlistGenerator> shortlistGenerator)¶
-