#include "LatticeMBR.h"
#include "moses/StaticData.h"
#include <algorithm>
#include <set>
Go to the source code of this file.
Namespaces | |
namespace | Moses |
$Id$ | |
Functions | |
void | Moses::GetOutputWords (const TrellisPath &path, vector< Word > &translation) |
void | Moses::extract_ngrams (const vector< Word > &sentence, map< Phrase, int > &allngrams) |
void | Moses::pruneLatticeFB (Lattice &connectedHyp, map< const Hypothesis *, set< const Hypothesis * > > &outgoingHyps, map< const Hypothesis *, vector< Edge > > &incomingEdges, const vector< float > &estimatedScores, const Hypothesis *bestHypo, size_t edgeDensity, float scale) |
void | Moses::calcNgramExpectations (Lattice &connectedHyp, map< const Hypothesis *, vector< Edge > > &incomingEdges, map< Phrase, float > &finalNgramScores, bool posteriors) |
ostream & | Moses::operator<< (ostream &out, const Edge &edge) |
bool | Moses::ascendingCoverageCmp (const Hypothesis *a, const Hypothesis *b) |
void | Moses::getLatticeMBRNBest (const Manager &manager, const TrellisPathList &nBestList, vector< LatticeMBRSolution > &solutions, size_t n) |
vector< Word > | Moses::doLatticeMBR (const Manager &manager, const TrellisPathList &nBestList) |
const TrellisPath | Moses::doConsensusDecoding (const Manager &manager, const TrellisPathList &nBestList) |
Variables | |
size_t | Moses::bleu_order = 4 |
float | Moses::UNKNGRAMLOGPROB = -20 |