#include "moses/parameters/AllOptions.h"
Go to the source code of this file.
Functions | |
Moses::TrellisPath const | doMBR (Moses::TrellisPathList const &nBestList, Moses::AllOptions const &opts) |
void | GetOutputFactors (const Moses::TrellisPath &path, Moses::FactorType const f, std::vector< const Moses::Factor * > &translation) |
float | calculate_score (const std::vector< std::vector< const Moses::Factor * > > &sents, int ref, int hyp, std::vector< std::map< std::vector< const Moses::Factor * >, int > > &ngram_stats) |
float calculate_score | ( | const std::vector< std::vector< const Moses::Factor * > > & | sents, | |
int | ref, | |||
int | hyp, | |||
std::vector< std::map< std::vector< const Moses::Factor * >, int > > & | ngram_stats | |||
) |
Moses::TrellisPath const doMBR | ( | Moses::TrellisPathList const & | nBestList, | |
Moses::AllOptions const & | opts | |||
) |
Definition at line 92 of file mbr.cpp.
References Moses::TrellisPathList::at(), Moses::TrellisPathList::begin(), calculate_score(), Moses::TrellisPathList::end(), extract_ngrams(), Moses::ReportingOptions::factor_order, Moses::GetOutputFactors(), Moses::TrellisPath::GetScoreBreakdown(), Moses::TrellisPathList::GetSize(), Moses::AllOptions::mbr, Moses::AllOptions::output, Moses::MBR_Options::scale, Moses::UntransformScore(), and UTIL_THROW_IF2.
Referenced by Moses::Manager::OutputBest().
void GetOutputFactors | ( | const Moses::TrellisPath & | path, | |
Moses::FactorType const | f, | |||
std::vector< const Moses::Factor * > & | translation | |||
) |