Moses::TranslationSystem Class Reference

#include <TranslationSystem.h>

Collaboration diagram for Moses::TranslationSystem:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TranslationSystem (const std::string &id, const WordPenaltyProducer *wpProducer, const UnknownWordPenaltyProducer *uwpProducer, const DistortionScoreProducer *distortionProducer)
void AddLanguageModel (LanguageModel *languageModel)
void AddDecodeGraph (DecodeGraph *decodeGraph, size_t backoff)
void AddReorderModel (LexicalReordering *reorderModel)
void AddGlobalLexicalModel (GlobalLexicalModel *globalLexicalModel)
void AddFeatureFunction (const FeatureFunction *featureFunction)
void ConfigDictionaries ()
const std::string & GetId () const
const std::vector
< LexicalReordering * > & 
GetReorderModels () const
const std::vector< DecodeGraph * > & GetDecodeGraphs () const
const std::vector< size_t > & GetDecodeGraphBackoff () const
const LMListGetLanguageModels () const
const std::vector
< GenerationDictionary * > & 
GetGenerationDictionaries () const
const std::vector
< PhraseDictionaryFeature * > & 
GetPhraseDictionaries () const
const std::vector< const
StatefulFeatureFunction * > & 
GetStatefulFeatureFunctions () const
const std::vector< const
StatelessFeatureFunction * > & 
GetStatelessFeatureFunctions () const
const WordPenaltyProducerGetWordPenaltyProducer () const
const UnknownWordPenaltyProducerGetUnknownWordPenaltyProducer () const
const DistortionScoreProducerGetDistortionProducer () const
float GetWeightWordPenalty () const
float GetWeightUnknownWordPenalty () const
float GetWeightDistortion () const
void InitializeBeforeSentenceProcessing (const InputType &source) const
void CleanUpAfterSentenceProcessing () const

Static Public Attributes

static const std::string DEFAULT = "default"


Detailed Description

Enables the configuration of multiple translation systems.

Definition at line 47 of file TranslationSystem.h.


Constructor & Destructor Documentation

Moses::TranslationSystem::TranslationSystem ( const std::string &  id,
const WordPenaltyProducer wpProducer,
const UnknownWordPenaltyProducer uwpProducer,
const DistortionScoreProducer distortionProducer 
)

Creates a system with the given id

Definition at line 41 of file TranslationSystem.cpp.

References AddFeatureFunction().

Here is the call graph for this function:


Member Function Documentation

void Moses::TranslationSystem::AddDecodeGraph ( DecodeGraph decodeGraph,
size_t  backoff 
)

Definition at line 62 of file TranslationSystem.cpp.

void Moses::TranslationSystem::AddFeatureFunction ( const FeatureFunction featureFunction  ) 

Definition at line 85 of file TranslationSystem.cpp.

References Moses::StatelessFeatureFunction::ComputeValueInTranslationOption(), and Moses::FeatureFunction::IsStateless().

Referenced by AddGlobalLexicalModel(), AddLanguageModel(), AddReorderModel(), ConfigDictionaries(), and TranslationSystem().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::TranslationSystem::AddGlobalLexicalModel ( GlobalLexicalModel globalLexicalModel  ) 

Definition at line 76 of file TranslationSystem.cpp.

References AddFeatureFunction().

Here is the call graph for this function:

void Moses::TranslationSystem::AddLanguageModel ( LanguageModel languageModel  ) 

Definition at line 55 of file TranslationSystem.cpp.

References Moses::LMList::Add(), and AddFeatureFunction().

Here is the call graph for this function:

void Moses::TranslationSystem::AddReorderModel ( LexicalReordering reorderModel  ) 

Definition at line 69 of file TranslationSystem.cpp.

References AddFeatureFunction().

Here is the call graph for this function:

void Moses::TranslationSystem::CleanUpAfterSentenceProcessing (  )  const

void Moses::TranslationSystem::ConfigDictionaries (  ) 

Definition at line 97 of file TranslationSystem.cpp.

References AddFeatureFunction(), Moses::DecodeStep::GetGenerationDictionaryFeature(), and Moses::DecodeStep::GetPhraseDictionaryFeature().

Here is the call graph for this function:

const std::vector<size_t>& Moses::TranslationSystem::GetDecodeGraphBackoff (  )  const [inline]

Definition at line 81 of file TranslationSystem.h.

Referenced by Moses::TranslationOptionCollection::CreateTranslationOptions().

Here is the caller graph for this function:

const std::vector<DecodeGraph*>& Moses::TranslationSystem::GetDecodeGraphs (  )  const [inline]

Definition at line 78 of file TranslationSystem.h.

Referenced by Moses::TranslationOptionCollection::CreateTranslationOptions(), and Moses::TranslationOptionCollection::ProcessUnknownWord().

Here is the caller graph for this function:

const DistortionScoreProducer* Moses::TranslationSystem::GetDistortionProducer (  )  const [inline]

Definition at line 107 of file TranslationSystem.h.

Referenced by Moses::HypothesisScoreOrdererWithDistortion::operator()(), and Moses::OutputWordGraph().

Here is the caller graph for this function:

const std::vector<GenerationDictionary*>& Moses::TranslationSystem::GetGenerationDictionaries (  )  const [inline]

Definition at line 87 of file TranslationSystem.h.

Referenced by OutputNBest().

Here is the caller graph for this function:

const std::string& Moses::TranslationSystem::GetId (  )  const [inline]

Definition at line 70 of file TranslationSystem.h.

const LMList& Moses::TranslationSystem::GetLanguageModels (  )  const [inline]

const std::vector<PhraseDictionaryFeature*>& Moses::TranslationSystem::GetPhraseDictionaries (  )  const [inline]

Definition at line 90 of file TranslationSystem.h.

Referenced by Moses::ChartManager::ChartManager(), OutputNBest(), Moses::OutputWordGraph(), and Moses::TargetPhrase::SetScore().

Here is the caller graph for this function:

const std::vector<LexicalReordering*>& Moses::TranslationSystem::GetReorderModels (  )  const [inline]

Definition at line 75 of file TranslationSystem.h.

Referenced by Moses::TranslationOptionCollection::CacheLexReordering(), and Moses::OutputWordGraph().

Here is the caller graph for this function:

const std::vector<const StatefulFeatureFunction*>& Moses::TranslationSystem::GetStatefulFeatureFunctions (  )  const [inline]

Definition at line 94 of file TranslationSystem.h.

Referenced by Moses::Hypothesis::CalcScore(), Moses::ChartHypothesis::CalcScore(), Moses::Hypothesis::Hypothesis(), and OutputNBest().

Here is the caller graph for this function:

const std::vector<const StatelessFeatureFunction*>& Moses::TranslationSystem::GetStatelessFeatureFunctions (  )  const [inline]

Definition at line 97 of file TranslationSystem.h.

Referenced by Moses::Hypothesis::CalcScore(), and OutputNBest().

Here is the caller graph for this function:

const UnknownWordPenaltyProducer* Moses::TranslationSystem::GetUnknownWordPenaltyProducer (  )  const [inline]

Definition at line 104 of file TranslationSystem.h.

Referenced by Moses::TranslationOptionCollection::ProcessOneUnknownWord(), and Moses::ChartTranslationOptionCollection::ProcessOneUnknownWord().

Here is the caller graph for this function:

float Moses::TranslationSystem::GetWeightDistortion (  )  const

Definition at line 173 of file TranslationSystem.cpp.

References CHECK, Moses::StaticData::GetAllWeights(), Moses::ScoreProducer::GetScoreBookkeepingID(), Moses::StaticData::GetScoreIndexManager(), and Moses::StaticData::Instance().

Referenced by Moses::HypothesisScoreOrdererWithDistortion::operator()().

Here is the call graph for this function:

Here is the caller graph for this function:

float Moses::TranslationSystem::GetWeightUnknownWordPenalty (  )  const

float Moses::TranslationSystem::GetWeightWordPenalty (  )  const

const WordPenaltyProducer* Moses::TranslationSystem::GetWordPenaltyProducer (  )  const [inline]

Definition at line 101 of file TranslationSystem.h.

Referenced by Moses::Hypothesis::CalcRemainingScore(), and Moses::ChartTranslationOptionCollection::ProcessOneUnknownWord().

Here is the caller graph for this function:

void Moses::TranslationSystem::InitializeBeforeSentenceProcessing ( const InputType source  )  const

Definition at line 117 of file TranslationSystem.cpp.

References Moses::LMList::begin(), Moses::LMList::end(), and Moses::LanguageModel::InitializeBeforeSentenceProcessing().

Referenced by Moses::ChartManager::ChartManager(), Moses::Manager::Manager(), and Moses::Manager::ProcessSentence().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

const string Moses::TranslationSystem::DEFAULT = "default" [static]


The documentation for this class was generated from the following files:

Generated on Wed Feb 8 23:04:11 2012 for Moses by  doxygen 1.5.9