
Go to the source code of this file.
Functions | |
| const Moses::TrellisPath | doMBR (const Moses::TrellisPathList &nBestList) |
| void | GetOutputFactors (const Moses::TrellisPath &path, 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 | |||
| ) |
| const Moses::TrellisPath doMBR | ( | const Moses::TrellisPathList & | nBestList | ) |
References Moses::TrellisPathList::at(), Moses::TrellisPathList::begin(), calculate_score(), Moses::TrellisPathList::end(), extract_ngrams(), GetOutputFactors(), Moses::TrellisPath::GetScoreBreakdown(), Moses::TrellisPathList::GetSize(), Moses::ScoreComponentCollection::InnerProduct(), and Moses::UntransformScore().
Referenced by TranslationTask::Run().


| void GetOutputFactors | ( | const Moses::TrellisPath & | path, | |
| std::vector< const Moses::Factor * > & | translation | |||
| ) |
1.5.9