#include <Manager.h>
Public Member Functions | |
Manager (ttasksptr const &ttask) | |
void | Decode () |
const SHyperedge * | GetBestSHyperedge () const |
void | ExtractKBest (std::size_t k, std::vector< boost::shared_ptr< KBestExtractor::Derivation > > &kBestList, bool onlyDistinct=false) const |
void | OutputDetailedTranslationReport (OutputCollector *collector) const |
Definition at line 30 of file Manager.h.
Moses::Syntax::T2S::Manager< RuleMatcher >::Manager | ( | ttasksptr const & | ttask | ) | [inline] |
Reimplemented from Moses::Syntax::Manager.
Definition at line 31 of file Manager-inl.h.
References Moses::Syntax::T2S::InputTreeBuilder::Build(), Moses::BaseManager::m_source, Moses::BaseManager::options(), and UTIL_THROW2.
void Moses::Syntax::T2S::Manager< RuleMatcher >::Decode | ( | ) | [inline, virtual] |
Implements Moses::BaseManager.
Definition at line 95 of file Manager-inl.h.
References Moses::Syntax::BoundedPriorityContainer< T >::Begin(), Moses::Syntax::T2S::InputTree::Node::children, Moses::Syntax::F2S::RuleMatcherCallback::ClearContainer(), count, Moses::Syntax::BoundedPriorityContainer< T >::End(), Moses::Syntax::T2S::RuleMatcher< Callback >::EnumerateHyperedges(), Moses::Syntax::F2S::RuleMatcherCallback::GetContainer(), Moses::Syntax::SHyperedge::head, Moses::Syntax::T2S::InputTree::nodes, Moses::BaseManager::options(), Moses::Syntax::T2S::InputTree::Node::pvertex, Moses::Syntax::SVertex::pvertex, Moses::Syntax::BoundedPriorityContainer< T >::Size(), and Moses::Syntax::T2S::GlueRuleSynthesizer::SynthesizeRule().
void Moses::Syntax::T2S::Manager< RuleMatcher >::ExtractKBest | ( | std::size_t | k, | |
std::vector< boost::shared_ptr< KBestExtractor::Derivation > > & | kBestList, | |||
bool | onlyDistinct = false | |||
) | const [inline, virtual] |
Implements Moses::Syntax::Manager.
Definition at line 188 of file Manager-inl.h.
References Moses::Syntax::KBestExtractor::GetOutputPhrase(), Moses::InputType::GetSize(), Moses::BaseManager::m_source, Moses::Syntax::T2S::InputTree::nodes, Moses::BaseManager::options(), and Moses::Syntax::T2S::InputTree::Node::pvertex.
const SHyperedge * Moses::Syntax::T2S::Manager< RuleMatcher >::GetBestSHyperedge | ( | ) | const [inline, virtual] |
Implements Moses::Syntax::Manager.
Definition at line 177 of file Manager-inl.h.
References Moses::Syntax::T2S::InputTree::nodes, and Moses::Syntax::T2S::InputTree::Node::pvertex.
Referenced by Moses::Syntax::T2S::Manager< RuleMatcher >::OutputDetailedTranslationReport().
void Moses::Syntax::T2S::Manager< RuleMatcher >::OutputDetailedTranslationReport | ( | OutputCollector * | collector | ) | const [inline, virtual] |
Reimplemented from Moses::Syntax::Manager.
Definition at line 292 of file Manager-inl.h.
References Moses::Syntax::T2S::Manager< RuleMatcher >::GetBestSHyperedge(), Moses::InputType::GetTranslationId(), Moses::BaseManager::m_source, NULL, Moses::OutputCollector::Write(), and Moses::Syntax::F2S::DerivationWriter::Write().