MosesTuning::HgBleuScorer Class Reference

#include <ForestRescore.h>

Collaboration diagram for MosesTuning::HgBleuScorer:

Collaboration graph

List of all members.

Public Member Functions

 HgBleuScorer (const ReferenceSet &references, const Graph &graph, size_t sentenceId, const std::vector< FeatureStatsType > &backgroundBleu)
FeatureStatsType Score (const Edge &edge, const Vertex &head, std::vector< FeatureStatsType > &bleuStats)
void UpdateState (const Edge &winnerEdge, size_t vertexId, const std::vector< FeatureStatsType > &bleuStats)

Detailed Description

Used to score an rule (ie edge) when we are applying it.

Definition at line 87 of file ForestRescore.h.

Constructor & Destructor Documentation

MosesTuning::HgBleuScorer::HgBleuScorer ( const ReferenceSet references,
const Graph graph,
size_t  sentenceId,
const std::vector< FeatureStatsType > &  backgroundBleu 
) [inline]

Definition at line 90 of file ForestRescore.h.

References MosesTuning::Graph::GetVertex(), and MosesTuning::Graph::VertexSize().

Here is the call graph for this function:

Member Function Documentation

FeatureStatsType MosesTuning::HgBleuScorer::Score ( const Edge edge,
const Vertex head,
std::vector< FeatureStatsType > &  bleuStats 

void MosesTuning::HgBleuScorer::UpdateState ( const Edge winnerEdge,
size_t  vertexId,
const std::vector< FeatureStatsType > &  bleuStats 

The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:34:16 2017 for Moses by  doxygen 1.5.9