#include <KBestExtractor.h>
Classes | |
| struct | Derivation |
| struct | DerivationEqualityPred |
| struct | DerivationHasher |
| struct | DerivationOrderer |
| struct | KHyperedge |
| struct | KVertex |
Public Types | |
| typedef std::vector < boost::shared_ptr < Derivation > > | KBestVec |
Public Member Functions | |
| void | Extract (const std::vector< boost::shared_ptr< SVertex > > &, std::size_t, KBestVec &) |
Static Public Member Functions | |
| static Phrase | GetOutputPhrase (const Derivation &) |
| static TreePointer | GetOutputTree (const Derivation &) |
Definition at line 29 of file KBestExtractor.h.
| typedef std::vector<boost::shared_ptr<Derivation> > Moses::Syntax::KBestExtractor::KBestVec |
Definition at line 75 of file KBestExtractor.h.
| void Moses::Syntax::KBestExtractor::Extract | ( | const std::vector< boost::shared_ptr< SVertex > > & | topLevelVertices, | |
| std::size_t | k, | |||
| KBestVec & | kBestList | |||
| ) |
Definition at line 16 of file KBestExtractor.cpp.
References Moses::Syntax::SVertex::best, Moses::Syntax::SLabel::deltas, Moses::Syntax::SLabel::futureScore, Moses::Syntax::SHyperedge::head, Moses::Syntax::SHyperedge::label, Moses::Syntax::SHyperedge::tail, Moses::Syntax::SLabel::translation, and UTIL_THROW_IF2.
Referenced by Moses::Syntax::S2T::Manager< Parser >::ExtractKBest().

| Phrase Moses::Syntax::KBestExtractor::GetOutputPhrase | ( | const Derivation & | d | ) | [static] |
Definition at line 76 of file KBestExtractor.cpp.
References Moses::Phrase::AddWord(), Moses::Phrase::Append(), Moses::ARRAY_SIZE_INCR, Moses::Syntax::KBestExtractor::Derivation::edge, Moses::TargetPhrase::GetAlignNonTerm(), Moses::AlignmentInfo::GetNonTermIndexMap(), Moses::Phrase::GetSize(), Moses::Phrase::GetWord(), Moses::StaticData::Instance(), Moses::Word::IsNonTerminal(), NOT_FOUND, Moses::StaticData::options(), Moses::Syntax::KBestExtractor::Derivation::subderivations, and UTIL_THROW2.
Referenced by Moses::Syntax::T2S::Manager< RuleMatcher >::ExtractKBest(), and Moses::Syntax::S2T::Manager< Parser >::ExtractKBest().


| TreePointer Moses::Syntax::KBestExtractor::GetOutputTree | ( | const Derivation & | d | ) | [static] |
Definition at line 124 of file KBestExtractor.cpp.
References Moses::Syntax::KBestExtractor::Derivation::edge, Moses::TargetPhrase::GetAlignNonTerm(), Moses::AlignmentInfo::GetNonTermIndexMap(), Moses::TargetPhrase::GetProperty(), Moses::Phrase::GetSize(), Moses::Phrase::GetWord(), Moses::Word::IsNonTerminal(), Moses::Syntax::KBestExtractor::Derivation::subderivations, and UTIL_THROW2.

1.5.9