#include <StaticData.h>

Public Member Functions | |
| bool | IsAlwaysCreateDirectTranslationOption () const |
| ~StaticData () | |
| destructor | |
| bool | LoadData (Parameter *parameter) |
| Main function to load everything. Also initialize the Parameter object. | |
| const PARAM_VEC & | GetParam (const std::string ¶mName) const |
| const std::vector< FactorType > & | GetInputFactorOrder () const |
| const std::vector< FactorType > & | GetOutputFactorOrder () const |
| bool | GetSourceStartPosMattersForRecombination () const |
| bool | GetDropUnknown () const |
| bool | GetDisableDiscarding () const |
| size_t | GetMaxNoTransOptPerCoverage () const |
| size_t | GetMaxNoPartTransOpt () const |
| const Phrase * | GetConstrainingPhrase (long sentenceID) const |
| size_t | GetMaxPhraseLength () const |
| bool | IsWordDeletionEnabled () const |
| size_t | GetMaxHypoStackSize () const |
| size_t | GetMinHypoStackDiversity () const |
| size_t | GetCubePruningPopLimit () const |
| size_t | GetCubePruningDiversity () const |
| bool | GetCubePruningLazyScoring () const |
| size_t | IsPathRecoveryEnabled () const |
| int | GetMaxDistortion () const |
| bool | UseReorderingConstraint () const |
| float | GetBeamWidth () const |
| float | GetEarlyDiscardingThreshold () const |
| bool | UseEarlyDiscarding () const |
| float | GetTranslationOptionThreshold () const |
| size_t | GetTotalScoreComponents () const |
| returns the total number of score components across all types, all factors | |
| const ScoreIndexManager & | GetScoreIndexManager () const |
| const TranslationSystem & | GetTranslationSystem (std::string id) const |
| size_t | GetVerboseLevel () const |
| void | SetVerboseLevel (int x) const |
| bool | GetReportSegmentation () const |
| bool | GetReportAllFactors () const |
| bool | GetReportAllFactorsNBest () const |
| bool | IsDetailedTranslationReportingEnabled () const |
| const std::string & | GetDetailedTranslationReportingFilePath () const |
| const std::string & | GetAlignmentOutputFile () const |
| bool | IsLabeledNBestList () const |
| bool | NBestIncludesAlignment () const |
| size_t | GetNumLinkParams () const |
| const std::vector< std::string > & | GetDescription () const |
| size_t | GetNBestSize () const |
| const std::string & | GetNBestFilePath () const |
| bool | IsNBestEnabled () const |
| size_t | GetLatticeSamplesSize () const |
| const std::string & | GetLatticeSamplesFilePath () const |
| size_t | GetNBestFactor () const |
| bool | GetOutputWordGraph () const |
| void | SetWeightsForScoreProducer (const ScoreProducer *sp, const std::vector< float > &weights) |
| Sets the global score vector weights for a given ScoreProducer. | |
| InputTypeEnum | GetInputType () const |
| ParsingAlgorithm | GetParsingAlgorithm () const |
| SearchAlgorithm | GetSearchAlgorithm () const |
| LMList | GetLMList () const |
| size_t | GetNumInputScores () const |
| const std::vector< float > & | GetAllWeights () const |
| bool | UseAlignmentInfo () const |
| void | UseAlignmentInfo (bool a) |
| bool | PrintAlignmentInfo () const |
| bool | PrintAlignmentInfoInNbest () const |
| bool | GetDistinctNBest () const |
| const std::string & | GetFactorDelimiter () const |
| size_t | GetMaxNumFactors (FactorDirection direction) const |
| size_t | GetMaxNumFactors () const |
| bool | UseMBR () const |
| bool | UseLatticeMBR () const |
| bool | UseConsensusDecoding () const |
| void | SetUseLatticeMBR (bool flag) |
| size_t | GetMBRSize () const |
| float | GetMBRScale () const |
| void | SetMBRScale (float scale) |
| size_t | GetLatticeMBRPruningFactor () const |
| void | SetLatticeMBRPruningFactor (size_t prune) |
| const std::vector< float > & | GetLatticeMBRThetas () const |
| bool | UseLatticeHypSetForLatticeMBR () const |
| float | GetLatticeMBRPrecision () const |
| void | SetLatticeMBRPrecision (float p) |
| float | GetLatticeMBRPRatio () const |
| void | SetLatticeMBRPRatio (float r) |
| float | GetLatticeMBRMapWeight () const |
| bool | UseTimeout () const |
| size_t | GetTimeoutThreshold () const |
| size_t | GetLMCacheCleanupThreshold () const |
| bool | GetLMEnableOOVFeature () const |
| bool | GetOutputSearchGraph () const |
| void | SetOutputSearchGraph (bool outputSearchGraph) |
| bool | GetOutputSearchGraphExtended () const |
| bool | GetUnprunedSearchGraph () const |
| XmlInputType | GetXmlInputType () const |
| std::pair< std::string, std::string > | GetXmlBrackets () const |
| bool | GetUseTransOptCache () const |
| void | AddTransOptListToCache (const DecodeGraph &decodeGraph, const Phrase &sourcePhrase, const TranslationOptionList &transOptList) const |
| void | ClearTransOptionCache () const |
| const TranslationOptionList * | FindTransOptListInCache (const DecodeGraph &decodeGraph, const Phrase &sourcePhrase) const |
| bool | PrintAllDerivations () const |
| const UnknownLHSList & | GetUnknownLHS () const |
| const Word & | GetInputDefaultNonTerminal () const |
| const Word & | GetOutputDefaultNonTerminal () const |
| SourceLabelOverlap | GetSourceLabelOverlap () const |
| bool | GetOutputHypoScore () const |
| size_t | GetRuleLimit () const |
| float | GetRuleCountThreshold () const |
| bool | ContinuePartialTranslation () const |
| WordAlignmentSort | GetWordAlignmentSort () const |
| int | ThreadCount () const |
| long | GetStartTranslationId () const |
Static Public Member Functions | |
| static const StaticData & | Instance () |
| return static instance for use like global variable | |
| static bool | LoadDataStatic (Parameter *parameter) |
| Load data into static instance. This function is required as LoadData() is not const. | |
Protected Member Functions | |
| StaticData () | |
| void | LoadPhraseBasedParameters () |
| void | LoadChartDecodingParameters () |
| void | LoadNonTerminals () |
| void | SetBooleanParameter (bool *paramter, std::string parameterName, bool defaultValue) |
| helper fn to set bool param from ini file/command line | |
| bool | LoadLanguageModels () |
| load all language models as specified in ini file | |
| bool | LoadPhraseTables () |
| load not only the main phrase table but also any auxiliary tables that depend on which features are being used (e.g., word-deletion, word-insertion tables) | |
| bool | LoadGenerationTables () |
| load all generation tables as specified in ini file | |
| bool | LoadDecodeGraphs () |
| load decoding steps | |
| bool | LoadLexicalReorderingModel () |
| bool | LoadGlobalLexicalModel () |
| void | ReduceTransOptCache () const |
Protected Attributes | |
| std::map< long, Phrase > | m_constraints |
| std::vector < PhraseDictionaryFeature * > | m_phraseDictionary |
| std::vector < GenerationDictionary * > | m_generationDictionary |
| Parameter * | m_parameter |
| std::vector< FactorType > | m_inputFactorOrder |
| std::vector< FactorType > | m_outputFactorOrder |
| LMList | m_languageModel |
| ScoreIndexManager | m_scoreIndexManager |
| std::vector< float > | m_allWeights |
| std::vector< LexicalReordering * > | m_reorderModels |
| std::vector< GlobalLexicalModel * > | m_globalLexicalModels |
| std::vector< DecodeGraph * > | m_decodeGraphs |
| std::vector< size_t > | m_decodeGraphBackoff |
| std::map< std::string, TranslationSystem > | m_translationSystems |
| float | m_beamWidth |
| float | m_earlyDiscardingThreshold |
| float | m_translationOptionThreshold |
| float | m_wordDeletionWeight |
| int | m_maxDistortion |
| bool | m_reorderingConstraint |
| size_t | m_maxHypoStackSize |
| use additional reordering constraints | |
| size_t | m_minHypoStackDiversity |
| minimum number of hypothesis in stack for each source word coverage | |
| size_t | m_nBestSize |
| size_t | m_latticeSamplesSize |
| size_t | m_nBestFactor |
| size_t | m_maxNoTransOptPerCoverage |
| size_t | m_maxNoPartTransOpt |
| size_t | m_maxPhraseLength |
| size_t | m_numLinkParams |
| std::string | m_constraintFileName |
| std::string | m_nBestFilePath |
| std::string | m_latticeSamplesFilePath |
| bool | m_fLMsLoaded |
| bool | m_labeledNBestList |
| bool | m_nBestIncludesAlignment |
| bool | m_dropUnknown |
| bool | m_wordDeletionEnabled |
| false = treat unknown words as unknowns, and translate them as themselves; true = drop (ignore) them | |
| bool | m_disableDiscarding |
| bool | m_printAllDerivations |
| bool | m_sourceStartPosMattersForRecombination |
| bool | m_recoverPath |
| bool | m_outputHypoScore |
| ParsingAlgorithm | m_parsingAlgorithm |
| SearchAlgorithm | m_searchAlgorithm |
| InputTypeEnum | m_inputType |
| size_t | m_numInputScores |
| size_t | m_verboseLevel |
| std::vector < WordPenaltyProducer * > | m_wordPenaltyProducers |
| std::vector < DistortionScoreProducer * > | m_distortionScoreProducers |
| UnknownWordPenaltyProducer * | m_unknownWordPenaltyProducer |
| bool | m_reportSegmentation |
| bool | m_reportAllFactors |
| bool | m_reportAllFactorsNBest |
| std::string | m_detailedTranslationReportingFilePath |
| bool | m_onlyDistinctNBest |
| bool | m_UseAlignmentInfo |
| bool | m_PrintAlignmentInfo |
| bool | m_PrintAlignmentInfoNbest |
| std::string | m_alignmentOutputFile |
| std::string | m_factorDelimiter |
| size_t | m_maxFactorIdx [2] |
| by default, |, but it can be changed | |
| size_t | m_maxNumFactors |
| number of factors on source and target side | |
| XmlInputType | m_xmlInputType |
| max number of factors on both source and target sides | |
| std::pair< std::string, std::string > | m_xmlBrackets |
| method for handling sentence XML input | |
| bool | m_mbr |
| strings to use as XML tags' opening and closing brackets. Default are "<" and ">" | |
| bool | m_useLatticeMBR |
| use MBR decoder | |
| bool | m_useConsensusDecoding |
| use MBR decoder | |
| size_t | m_mbrSize |
| Use Consensus decoding (DeNero et al 2009). | |
| float | m_mbrScale |
| number of translation candidates considered | |
| size_t | m_lmbrPruning |
| scaling factor for computing marginal probability of candidate translation | |
| std::vector< float > | m_lmbrThetas |
| average number of nodes per word wanted in pruned lattice | |
| bool | m_useLatticeHypSetForLatticeMBR |
| theta(s) for lattice mbr calculation | |
| float | m_lmbrPrecision |
| to use nbest as hypothesis set during lattice MBR | |
| float | m_lmbrPRatio |
| unigram precision theta - see Tromble et al 08 for more details | |
| float | m_lmbrMapWeight |
| decaying factor for ngram thetas - see Tromble et al 08 for more details | |
| size_t | m_lmcache_cleanup_threshold |
| Weight given to the map solution. See Kumar et al 09 for details. | |
| bool | m_lmEnableOOVFeature |
| number of translations after which LM claenup is performed (0=never, N=after N translations; default is 1) | |
| bool | m_timeout |
| size_t | m_timeout_threshold |
| use timeout | |
| bool | m_useTransOptCache |
| seconds after which time out is activated | |
| std::map< std::pair< size_t, Phrase >, std::pair < TranslationOptionList *, clock_t > > | m_transOptCache |
| flag indicating, if the persistent translation option cache should be used | |
| size_t | m_transOptCacheMaxSize |
| persistent translation option cache | |
| bool | m_isAlwaysCreateDirectTranslationOption |
| maximum size for persistent translation option cache | |
| bool | m_outputWordGraph |
| constructor. only the 1 static variable can be created | |
| bool | m_outputSearchGraph |
| whether to output word graph | |
| bool | m_outputSearchGraphExtended |
| whether to output search graph | |
| bool | m_unprunedSearchGraph |
| ... in extended format | |
| size_t | m_cubePruningPopLimit |
| do not exclude dead ends (chart decoder only) | |
| size_t | m_cubePruningDiversity |
| bool | m_cubePruningLazyScoring |
| size_t | m_ruleLimit |
| Word | m_inputDefaultNonTerminal |
| Word | m_outputDefaultNonTerminal |
| SourceLabelOverlap | m_sourceLabelOverlap |
| UnknownLHSList | m_unknownLHS |
| WordAlignmentSort | m_wordAlignmentSort |
| int | m_threadCount |
| long | m_startTranslationId |
| bool | m_continuePartialTranslation |
Definition at line 70 of file StaticData.h.
| Moses::StaticData::StaticData | ( | ) | [protected] |
Definition at line 76 of file StaticData.cpp.
References Moses::Phrase::InitializeMemPool(), m_maxFactorIdx, and m_xmlBrackets.

| Moses::StaticData::~StaticData | ( | ) |
destructor
Definition at line 625 of file StaticData.cpp.
References Moses::LMList::CleanUp(), ClearTransOptionCache(), Moses::Phrase::FinalizeMemPool(), m_decodeGraphs, m_distortionScoreProducers, m_generationDictionary, m_globalLexicalModels, m_languageModel, m_phraseDictionary, m_reorderModels, m_unknownWordPenaltyProducer, m_wordPenaltyProducers, and Moses::RemoveAllInColl().

| void Moses::StaticData::AddTransOptListToCache | ( | const DecodeGraph & | decodeGraph, | |
| const Phrase & | sourcePhrase, | |||
| const TranslationOptionList & | transOptList | |||
| ) | const |
Definition at line 1322 of file StaticData.cpp.
References Moses::DecodeGraph::GetPosition(), key, m_transOptCache, m_transOptCacheMaxSize, and ReduceTransOptCache().
Referenced by Moses::TranslationOptionCollection::CreateTranslationOptionsForRange().


| void Moses::StaticData::ClearTransOptionCache | ( | ) | const |
Definition at line 1333 of file StaticData.cpp.
References m_transOptCache.
Referenced by ~StaticData().

| bool Moses::StaticData::ContinuePartialTranslation | ( | ) | const [inline] |
Definition at line 607 of file StaticData.h.
References m_continuePartialTranslation.
Referenced by Moses::Sentence::Read().

| const TranslationOptionList * Moses::StaticData::FindTransOptListInCache | ( | const DecodeGraph & | decodeGraph, | |
| const Phrase & | sourcePhrase | |||
| ) | const |
Definition at line 1279 of file StaticData.cpp.
References Moses::DecodeGraph::GetPosition(), key, m_transOptCache, and NULL.
Referenced by Moses::TranslationOptionCollection::CreateTranslationOptionsForRange().


| const std::string& Moses::StaticData::GetAlignmentOutputFile | ( | ) | const [inline] |
Definition at line 384 of file StaticData.h.
References m_alignmentOutputFile.
Referenced by main().

| const std::vector<float>& Moses::StaticData::GetAllWeights | ( | ) | const [inline] |
Definition at line 448 of file StaticData.h.
References m_allWeights.
Referenced by Moses::Hypothesis::CalcExpectedScore(), Moses::Hypothesis::CalcRemainingScore(), Moses::Hypothesis::CalcScore(), Moses::LanguageModel::GetOOVWeight(), Moses::LanguageModel::GetWeight(), Moses::TranslationSystem::GetWeightDistortion(), Moses::TranslationSystem::GetWeightUnknownWordPenalty(), Moses::TranslationSystem::GetWeightWordPenalty(), main(), and Moses::TargetPhrase::SetScore().

| float Moses::StaticData::GetBeamWidth | ( | ) | const [inline] |
Definition at line 332 of file StaticData.h.
References m_beamWidth.
Referenced by Moses::ChartHypothesisCollection::ChartHypothesisCollection(), Moses::SearchCubePruning::SearchCubePruning(), and Moses::SearchNormal::SearchNormal().

| const Phrase* Moses::StaticData::GetConstrainingPhrase | ( | long | sentenceID | ) | const [inline] |
Definition at line 293 of file StaticData.h.
References m_constraints, and NULL.
Referenced by Moses::SearchNormal::SearchNormal().

| size_t Moses::StaticData::GetCubePruningDiversity | ( | ) | const [inline] |
Definition at line 317 of file StaticData.h.
References m_cubePruningDiversity.
Referenced by Moses::SearchCubePruning::ProcessSentence().

| bool Moses::StaticData::GetCubePruningLazyScoring | ( | ) | const [inline] |
| size_t Moses::StaticData::GetCubePruningPopLimit | ( | ) | const [inline] |
Definition at line 314 of file StaticData.h.
References m_cubePruningPopLimit.
Referenced by Moses::SearchCubePruning::ProcessSentence(), and Moses::ChartCell::ProcessSentence().

| const std::vector<std::string>& Moses::StaticData::GetDescription | ( | ) | const [inline] |
Definition at line 397 of file StaticData.h.
References Moses::Parameter::GetParam(), and m_parameter.

| const std::string& Moses::StaticData::GetDetailedTranslationReportingFilePath | ( | ) | const [inline] |
| bool Moses::StaticData::GetDisableDiscarding | ( | ) | const [inline] |
| bool Moses::StaticData::GetDistinctNBest | ( | ) | const [inline] |
Definition at line 464 of file StaticData.h.
References m_onlyDistinctNBest.
Referenced by Moses::Hypothesis::CleanupArcList(), Moses::ChartHypothesis::CleanupArcList(), and TranslationTask::Run().

| bool Moses::StaticData::GetDropUnknown | ( | ) | const [inline] |
Definition at line 281 of file StaticData.h.
References m_dropUnknown.
Referenced by Moses::TranslationOptionCollection::ProcessOneUnknownWord(), and Moses::ChartTranslationOptionCollection::ProcessOneUnknownWord().

| float Moses::StaticData::GetEarlyDiscardingThreshold | ( | ) | const [inline] |
Definition at line 335 of file StaticData.h.
References m_earlyDiscardingThreshold.
Referenced by Moses::SearchNormal::ExpandHypothesis().

| const std::string& Moses::StaticData::GetFactorDelimiter | ( | ) | const [inline] |
Definition at line 467 of file StaticData.h.
References m_factorDelimiter.
Referenced by Moses::BilingualDynSuffixArray::addSntPair(), Moses::RuleTableLoaderStandard::Load(), LoadData(), Moses::operator<<(), Moses::ProcessAndStripXMLTags(), Moses::Sentence::Read(), and Moses::TargetPhrase::TargetPhrase().

| const Word& Moses::StaticData::GetInputDefaultNonTerminal | ( | ) | const [inline] |
Definition at line 586 of file StaticData.h.
References m_inputDefaultNonTerminal.
Referenced by Moses::TreeInput::Read().

| const std::vector<FactorType>& Moses::StaticData::GetInputFactorOrder | ( | ) | const [inline] |
Definition at line 270 of file StaticData.h.
References m_inputFactorOrder.
Referenced by GetIODevice(), and Moses::TargetPhrase::TargetPhrase().

| InputTypeEnum Moses::StaticData::GetInputType | ( | ) | const [inline] |
Definition at line 432 of file StaticData.h.
References m_inputType.
Referenced by main(), and Moses::SearchNormal::ProcessOneHypothesis().

| float Moses::StaticData::GetLatticeMBRMapWeight | ( | ) | const [inline] |
Definition at line 522 of file StaticData.h.
References m_lmbrMapWeight.
Referenced by getLatticeMBRNBest().

| float Moses::StaticData::GetLatticeMBRPRatio | ( | ) | const [inline] |
Definition at line 515 of file StaticData.h.
References m_lmbrPRatio.
Referenced by getLatticeMBRNBest().

| float Moses::StaticData::GetLatticeMBRPrecision | ( | ) | const [inline] |
Definition at line 509 of file StaticData.h.
References m_lmbrPrecision.
Referenced by getLatticeMBRNBest().

| size_t Moses::StaticData::GetLatticeMBRPruningFactor | ( | ) | const [inline] |
Definition at line 497 of file StaticData.h.
References m_lmbrPruning.
Referenced by doConsensusDecoding(), and getLatticeMBRNBest().

| const std::vector<float>& Moses::StaticData::GetLatticeMBRThetas | ( | ) | const [inline] |
Definition at line 503 of file StaticData.h.
References m_lmbrThetas.
Referenced by getLatticeMBRNBest().

| const std::string& Moses::StaticData::GetLatticeSamplesFilePath | ( | ) | const [inline] |
Definition at line 419 of file StaticData.h.
References m_latticeSamplesFilePath.
Referenced by main().

| size_t Moses::StaticData::GetLatticeSamplesSize | ( | ) | const [inline] |
Definition at line 415 of file StaticData.h.
References m_latticeSamplesSize.
Referenced by main(), and TranslationTask::Run().

| size_t Moses::StaticData::GetLMCacheCleanupThreshold | ( | ) | const [inline] |
Definition at line 533 of file StaticData.h.
References m_lmcache_cleanup_threshold.
Referenced by Moses::LanguageModelIRST::CleanUpAfterSentenceProcessing().

| bool Moses::StaticData::GetLMEnableOOVFeature | ( | ) | const [inline] |
Definition at line 537 of file StaticData.h.
References m_lmEnableOOVFeature.
Referenced by Moses::LanguageModel::LanguageModel().

| LMList Moses::StaticData::GetLMList | ( | ) | const [inline] |
| int Moses::StaticData::GetMaxDistortion | ( | ) | const [inline] |
Definition at line 326 of file StaticData.h.
References m_maxDistortion.
Referenced by Moses::HypothesisStackNormal::Add(), Moses::BackwardsEdge::BackwardsEdge(), Moses::ReorderingConstraint::Check(), Moses::SearchCubePruning::CheckDistortion(), and Moses::SearchNormal::ProcessOneHypothesis().

| size_t Moses::StaticData::GetMaxHypoStackSize | ( | ) | const [inline] |
Definition at line 308 of file StaticData.h.
References m_maxHypoStackSize.
Referenced by Moses::ChartHypothesisCollection::ChartHypothesisCollection(), Moses::SearchNormal::ProcessSentence(), Moses::SearchCubePruning::ProcessSentence(), Moses::SearchCubePruning::SearchCubePruning(), and Moses::SearchNormal::SearchNormal().

| size_t Moses::StaticData::GetMaxNoPartTransOpt | ( | ) | const [inline] |
Definition at line 290 of file StaticData.h.
References m_maxNoPartTransOpt.
Referenced by Moses::PartialTranslOptColl::PartialTranslOptColl().

| size_t Moses::StaticData::GetMaxNoTransOptPerCoverage | ( | ) | const [inline] |
Definition at line 287 of file StaticData.h.
References m_maxNoTransOptPerCoverage.
Referenced by Moses::Sentence::CreateTranslationOptionCollection(), and Moses::ConfusionNet::CreateTranslationOptionCollection().

| size_t Moses::StaticData::GetMaxNumFactors | ( | ) | const [inline] |
| size_t Moses::StaticData::GetMaxNumFactors | ( | FactorDirection | direction | ) | const [inline] |
Definition at line 470 of file StaticData.h.
References m_maxFactorIdx.
Referenced by Moses::Hypothesis::GetSourcePhraseStringRep(), and Moses::Hypothesis::GetTargetPhraseStringRep().

| size_t Moses::StaticData::GetMaxPhraseLength | ( | ) | const [inline] |
Definition at line 302 of file StaticData.h.
References m_maxPhraseLength.
Referenced by Moses::TranslationOptionCollection::CacheLexReordering(), Moses::TranslationOptionCollection::CalcFutureScore(), Moses::SearchCubePruning::CreateForwardTodos(), Moses::TranslationOptionCollection::CreateTranslationOptions(), Moses::TranslationOptionCollection::GetTranslationOptionList(), Moses::WordLattice::InitializeFromPCNDataType(), Moses::operator<<(), Moses::SearchNormal::ProcessOneHypothesis(), Moses::TranslationOptionCollection::Prune(), Moses::TranslationOptionCollection::Sort(), and Moses::TranslationOptionCollection::TranslationOptionCollection().

| float Moses::StaticData::GetMBRScale | ( | ) | const [inline] |
Definition at line 491 of file StaticData.h.
References m_mbrScale.
Referenced by doConsensusDecoding(), and getLatticeMBRNBest().

| size_t Moses::StaticData::GetMBRSize | ( | ) | const [inline] |
Definition at line 488 of file StaticData.h.
References m_mbrSize.
Referenced by main(), and TranslationTask::Run().

| size_t Moses::StaticData::GetMinHypoStackDiversity | ( | ) | const [inline] |
Definition at line 311 of file StaticData.h.
References m_minHypoStackDiversity.
Referenced by Moses::SearchNormal::ExpandHypothesis(), and Moses::SearchNormal::SearchNormal().

| size_t Moses::StaticData::GetNBestFactor | ( | ) | const [inline] |
Definition at line 423 of file StaticData.h.
References m_nBestFactor.
Referenced by Moses::Manager::CalcNBest(), and Moses::ChartManager::CalcNBest().

| const std::string& Moses::StaticData::GetNBestFilePath | ( | ) | const [inline] |
Definition at line 405 of file StaticData.h.
References m_nBestFilePath.
Referenced by GetIODevice(), and main().

| size_t Moses::StaticData::GetNBestSize | ( | ) | const [inline] |
Definition at line 402 of file StaticData.h.
References m_nBestSize.
Referenced by Moses::Hypothesis::CleanupArcList(), Moses::ChartHypothesis::CleanupArcList(), GetIODevice(), main(), and TranslationTask::Run().

| size_t Moses::StaticData::GetNumInputScores | ( | ) | const [inline] |
Definition at line 444 of file StaticData.h.
References m_numInputScores.
Referenced by Moses::WordLattice::InitializeFromPCNDataType(), and Moses::ConfusionNet::ReadFormat0().

| size_t Moses::StaticData::GetNumLinkParams | ( | ) | const [inline] |
Definition at line 394 of file StaticData.h.
References m_numLinkParams.
Referenced by Moses::WordLattice::InitializeFromPCNDataType(), and Moses::ConfusionNet::ReadFormat0().

| const Word& Moses::StaticData::GetOutputDefaultNonTerminal | ( | ) | const [inline] |
| const std::vector<FactorType>& Moses::StaticData::GetOutputFactorOrder | ( | ) | const [inline] |
Definition at line 273 of file StaticData.h.
References m_outputFactorOrder.
Referenced by GetIODevice(), Moses::TrellisPath::GetSurfacePhrase(), LoadData(), Moses::OutputSearchNode(), Moses::ProcessAndStripXMLTags(), Moses::ChartTranslationOptionCollection::ProcessOneUnknownWord(), and TranslationTask::Run().

| bool Moses::StaticData::GetOutputHypoScore | ( | ) | const [inline] |
| bool Moses::StaticData::GetOutputSearchGraph | ( | ) | const [inline] |
Definition at line 541 of file StaticData.h.
References m_outputSearchGraph.
Referenced by Moses::Hypothesis::CleanupArcList(), Moses::ChartHypothesis::CleanupArcList(), and main().

| bool Moses::StaticData::GetOutputSearchGraphExtended | ( | ) | const [inline] |
Definition at line 547 of file StaticData.h.
References m_outputSearchGraphExtended.
Referenced by Moses::OutputSearchNode().

| bool Moses::StaticData::GetOutputWordGraph | ( | ) | const [inline] |
Definition at line 426 of file StaticData.h.
References m_outputWordGraph.
Referenced by main().

| const PARAM_VEC& Moses::StaticData::GetParam | ( | const std::string & | paramName | ) | const [inline] |
Definition at line 266 of file StaticData.h.
References Moses::Parameter::GetParam(), and m_parameter.
Referenced by GetIODevice(), Moses::Manager::GetWordGraph(), and TranslationTask::Run().


| ParsingAlgorithm Moses::StaticData::GetParsingAlgorithm | ( | ) | const [inline] |
| bool Moses::StaticData::GetReportAllFactors | ( | ) | const [inline] |
Definition at line 371 of file StaticData.h.
References m_reportAllFactors.
Referenced by main(), and TranslationTask::Run().

| bool Moses::StaticData::GetReportAllFactorsNBest | ( | ) | const [inline] |
Definition at line 374 of file StaticData.h.
References m_reportAllFactorsNBest.
Referenced by OutputNBest().

| bool Moses::StaticData::GetReportSegmentation | ( | ) | const [inline] |
Definition at line 368 of file StaticData.h.
References m_reportSegmentation.
Referenced by main(), and TranslationTask::Run().

| float Moses::StaticData::GetRuleCountThreshold | ( | ) | const [inline] |
Definition at line 603 of file StaticData.h.
| size_t Moses::StaticData::GetRuleLimit | ( | ) | const [inline] |
| const ScoreIndexManager& Moses::StaticData::GetScoreIndexManager | ( | ) | const [inline] |
Definition at line 348 of file StaticData.h.
References m_scoreIndexManager.
Referenced by Moses::LMList::Add(), Moses::LanguageModel::GetOOVWeight(), Moses::LanguageModel::GetWeight(), Moses::TranslationSystem::GetWeightDistortion(), Moses::TranslationSystem::GetWeightUnknownWordPenalty(), Moses::TranslationSystem::GetWeightWordPenalty(), Moses::LexicalReordering::LexicalReordering(), main(), Moses::OutputSearchNode(), Moses::PhraseDictionaryFeature::PhraseDictionaryFeature(), Moses::TargetPhrase::SetScore(), and Moses::SyntacticLanguageModel::SyntacticLanguageModel().

| SearchAlgorithm Moses::StaticData::GetSearchAlgorithm | ( | ) | const [inline] |
Definition at line 438 of file StaticData.h.
References m_searchAlgorithm.
Referenced by main(), Moses::Sentence::Read(), TranslationTask::Run(), and Moses::Sentence::Sentence().

| SourceLabelOverlap Moses::StaticData::GetSourceLabelOverlap | ( | ) | const [inline] |
Definition at line 593 of file StaticData.h.
References m_sourceLabelOverlap.
Referenced by Moses::TreeInput::AddChartLabel().

| bool Moses::StaticData::GetSourceStartPosMattersForRecombination | ( | ) | const [inline] |
| long Moses::StaticData::GetStartTranslationId | ( | ) | const [inline] |
Definition at line 619 of file StaticData.h.
References m_startTranslationId.
Referenced by LoadData().

| size_t Moses::StaticData::GetTimeoutThreshold | ( | ) | const [inline] |
Definition at line 529 of file StaticData.h.
References m_timeout_threshold.
Referenced by LoadData(), Moses::SearchNormal::ProcessSentence(), and Moses::SearchCubePruning::ProcessSentence().

| size_t Moses::StaticData::GetTotalScoreComponents | ( | ) | const [inline] |
returns the total number of score components across all types, all factors
Definition at line 345 of file StaticData.h.
References Moses::ScoreIndexManager::GetTotalNumberOfScores(), and m_scoreIndexManager.

| float Moses::StaticData::GetTranslationOptionThreshold | ( | ) | const [inline] |
Definition at line 341 of file StaticData.h.
References m_translationOptionThreshold.
Referenced by Moses::ChartTranslationOptionList::ApplyThreshold(), Moses::Sentence::CreateTranslationOptionCollection(), and Moses::ConfusionNet::CreateTranslationOptionCollection().

| const TranslationSystem& Moses::StaticData::GetTranslationSystem | ( | std::string | id | ) | const [inline] |
Definition at line 352 of file StaticData.h.
References m_translationSystems, and VERBOSE.
Referenced by main(), TranslationTask::Run(), and Moses::TargetPhrase::SetScore().

| const UnknownLHSList& Moses::StaticData::GetUnknownLHS | ( | ) | const [inline] |
Definition at line 582 of file StaticData.h.
References m_unknownLHS.
Referenced by Moses::ChartTranslationOptionCollection::ProcessOneUnknownWord().

| bool Moses::StaticData::GetUnprunedSearchGraph | ( | ) | const [inline] |
Definition at line 555 of file StaticData.h.
References m_unprunedSearchGraph.
Referenced by Moses::ChartHypothesisCollection::GetSearchGraph().

| bool Moses::StaticData::GetUseTransOptCache | ( | ) | const [inline] |
Definition at line 567 of file StaticData.h.
References m_useTransOptCache.
Referenced by Moses::TranslationOptionCollection::CreateTranslationOptionsForRange().

| size_t Moses::StaticData::GetVerboseLevel | ( | ) | const [inline] |
| WordAlignmentSort Moses::StaticData::GetWordAlignmentSort | ( | ) | const [inline] |
Definition at line 611 of file StaticData.h.
References m_wordAlignmentSort.
Referenced by Moses::AlignmentInfo::GetSortedAlignments().

| std::pair<std::string,std::string> Moses::StaticData::GetXmlBrackets | ( | ) | const [inline] |
Definition at line 563 of file StaticData.h.
References m_xmlBrackets.
Referenced by Moses::Sentence::Read().

| XmlInputType Moses::StaticData::GetXmlInputType | ( | ) | const [inline] |
Definition at line 559 of file StaticData.h.
References m_xmlInputType.
Referenced by Moses::Sentence::Read().

| static const StaticData& Moses::StaticData::Instance | ( | ) | [inline, static] |
return static instance for use like global variable
Definition at line 245 of file StaticData.h.
Referenced by Moses::LMList::Add(), Moses::HypothesisStackNormal::Add(), Moses::TreeInput::AddChartLabel(), Moses::HypothesisStackNormal::AddPrune(), Moses::BilingualDynSuffixArray::addSntPair(), Moses::ChartTranslationOptionList::ApplyThreshold(), Moses::BackwardsEdge::BackwardsEdge(), Moses::TranslationOptionCollection::CacheLexReordering(), Moses::PDTAimp::CacheSource(), Moses::Hypothesis::CalcExpectedScore(), Moses::TranslationOptionCollection::CalcFutureScore(), Moses::Manager::CalcNBest(), Moses::ChartManager::CalcNBest(), Moses::Hypothesis::CalcRemainingScore(), Moses::TranslationOption::CalcScore(), Moses::LMList::CalcScore(), Moses::Hypothesis::CalcScore(), Moses::ChartCell::ChartCell(), Moses::ChartHypothesisCollection::ChartHypothesisCollection(), Moses::ReorderingConstraint::Check(), Moses::SearchCubePruning::CheckDistortion(), Moses::LanguageModelIRST::CleanUpAfterSentenceProcessing(), Moses::Hypothesis::CleanupArcList(), Moses::ChartHypothesis::CleanupArcList(), Moses::PDTAimp::Create(), Moses::SearchCubePruning::CreateForwardTodos(), Moses::PDTAimp::CreateTargetPhrase(), Moses::Sentence::CreateTranslationOptionCollection(), Moses::ConfusionNet::CreateTranslationOptionCollection(), Moses::TranslationOptionCollection::CreateTranslationOptions(), Moses::TranslationOptionCollection::CreateTranslationOptionsForRange(), Moses::ChartTranslationOptionCollection::CreateTranslationOptionsForRange(), Moses::SearchNormal::ExpandAllHypotheses(), Moses::SearchNormal::ExpandHypothesis(), Moses::LanguageModel::GetOOVWeight(), Moses::ChartHypothesisCollection::GetSearchGraph(), Moses::AlignmentInfo::GetSortedAlignments(), Moses::Hypothesis::GetSourcePhraseStringRep(), Moses::TrellisPath::GetSurfacePhrase(), Moses::Hypothesis::GetTargetPhraseStringRep(), Moses::TranslationOptionCollection::GetTranslationOptionList(), Moses::LanguageModel::GetWeight(), Moses::TranslationSystem::GetWeightDistortion(), Moses::ScoreComponentCollection::GetWeightedScore(), Moses::TranslationSystem::GetWeightUnknownWordPenalty(), Moses::TranslationSystem::GetWeightWordPenalty(), Moses::Manager::GetWordGraph(), Moses::HypothesisStackCubePruning::HypothesisStackCubePruning(), Moses::HypothesisStackNormal::HypothesisStackNormal(), Moses::WordLattice::InitializeFromPCNDataType(), Moses::LanguageModel::LanguageModel(), Moses::LexicalReordering::LexicalReordering(), Moses::RuleTableLoaderStandard::Load(), Moses::LanguageModelIRST::Load(), LoadNonTerminals(), Moses::operator<<(), Moses::OutputSearchNode(), Moses::PartialTranslOptColl::PartialTranslOptColl(), Moses::PhraseDictionaryFeature::PhraseDictionaryFeature(), Moses::RuleCubeQueue::Pop(), Moses::ProcessAndStripXMLTags(), Moses::DecodeStepTranslation::ProcessInitialTranslation(), Moses::SearchNormal::ProcessOneHypothesis(), Moses::TranslationOptionCollection::ProcessOneUnknownWord(), Moses::ChartTranslationOptionCollection::ProcessOneUnknownWord(), Moses::SearchNormal::ProcessSentence(), Moses::SearchCubePruning::ProcessSentence(), Moses::ChartCell::ProcessSentence(), Moses::TranslationOptionCollection::ProcessUnknownWord(), Moses::TranslationOptionCollection::Prune(), Moses::TreeInput::Read(), Moses::Sentence::Read(), Moses::ConfusionNet::ReadFormat0(), Moses::RuleCube::RuleCube(), Moses::SearchCubePruning::SearchCubePruning(), Moses::SearchNormal::SearchNormal(), Moses::Sentence::Sentence(), Moses::TargetPhrase::SetScore(), Moses::TranslationOptionCollection::Sort(), Moses::SyntacticLanguageModel::SyntacticLanguageModel(), Moses::TargetPhrase::TargetPhrase(), Moses::TranslationOptionCollection::TranslationOptionCollection(), and Moses::PDTAimp::~PDTAimp().
| bool Moses::StaticData::IsAlwaysCreateDirectTranslationOption | ( | ) | const [inline] |
Definition at line 239 of file StaticData.h.
References m_isAlwaysCreateDirectTranslationOption.
Referenced by Moses::ChartTranslationOptionCollection::CreateTranslationOptionsForRange(), and Moses::TranslationOptionCollection::ProcessUnknownWord().

| bool Moses::StaticData::IsDetailedTranslationReportingEnabled | ( | ) | const [inline] |
Definition at line 377 of file StaticData.h.
References m_detailedTranslationReportingFilePath.
Referenced by main().

| bool Moses::StaticData::IsLabeledNBestList | ( | ) | const [inline] |
Definition at line 388 of file StaticData.h.
References m_labeledNBestList.
Referenced by OutputNBest().

| bool Moses::StaticData::IsNBestEnabled | ( | ) | const [inline] |
Definition at line 408 of file StaticData.h.
References m_latticeSamplesFilePath, m_mbr, m_nBestFilePath, m_outputSearchGraph, m_useConsensusDecoding, and m_useLatticeMBR.
Referenced by Moses::ChartCell::ChartCell(), Moses::ChartHypothesisCollection::ChartHypothesisCollection(), Moses::HypothesisStackCubePruning::HypothesisStackCubePruning(), and Moses::HypothesisStackNormal::HypothesisStackNormal().

| size_t Moses::StaticData::IsPathRecoveryEnabled | ( | ) | const [inline] |
Definition at line 323 of file StaticData.h.
References m_recoverPath.
Referenced by TranslationTask::Run().

| bool Moses::StaticData::IsWordDeletionEnabled | ( | ) | const [inline] |
Definition at line 305 of file StaticData.h.
References m_wordDeletionEnabled.
Referenced by Moses::RuleTableLoaderStandard::Load().

| void Moses::StaticData::LoadChartDecodingParameters | ( | ) | [protected] |
Definition at line 1144 of file StaticData.cpp.
References Moses::DEFAULT_MAX_TRANS_OPT_SIZE, Moses::Parameter::GetParam(), LoadNonTerminals(), m_parameter, m_ruleLimit, m_sourceLabelOverlap, and Moses::SourceLabelOverlapAdd.
Referenced by LoadData().


| bool Moses::StaticData::LoadData | ( | Parameter * | parameter | ) |
Main function to load everything. Also initialize the Parameter object.
Definition at line 98 of file StaticData.cpp.
References Moses::UserMessage::Add(), Moses::LMList::begin(), Moses::ChartDecoding, CHECK, Moses::Phrase::CreateFromString(), Moses::TranslationSystem::DEFAULT, Moses::DEFAULT_BEAM_WIDTH, Moses::DEFAULT_CUBE_PRUNING_DIVERSITY, Moses::DEFAULT_CUBE_PRUNING_POP_LIMIT, Moses::DEFAULT_EARLY_DISCARDING_THRESHOLD, Moses::DEFAULT_MAX_HYPOSTACK_SIZE, Moses::DEFAULT_MAX_PART_TRANS_OPT_SIZE, Moses::DEFAULT_MAX_PHRASE_LENGTH, Moses::DEFAULT_MAX_TRANS_OPT_CACHE_SIZE, Moses::DEFAULT_MAX_TRANS_OPT_SIZE, Moses::DEFAULT_TRANSLATION_OPTION_THRESHOLD, Moses::LMList::end(), GetFactorDelimiter(), GetOutputFactorOrder(), Moses::Parameter::GetParam(), GetStartTranslationId(), GetTimeoutThreshold(), Moses::ScoreIndexManager::InitFeatureNames(), Moses::Parameter::isParamSpecified(), LoadChartDecodingParameters(), LoadDecodeGraphs(), LoadGenerationTables(), LoadGlobalLexicalModel(), LoadLanguageModels(), LoadLexicalReorderingModel(), LoadPhraseBasedParameters(), LoadPhraseTables(), m_alignmentOutputFile, m_allWeights, m_beamWidth, m_constraintFileName, m_constraints, m_continuePartialTranslation, m_cubePruningDiversity, m_cubePruningLazyScoring, m_cubePruningPopLimit, m_decodeGraphBackoff, m_decodeGraphs, m_detailedTranslationReportingFilePath, m_disableDiscarding, m_distortionScoreProducers, m_dropUnknown, m_earlyDiscardingThreshold, m_factorDelimiter, m_globalLexicalModels, m_inputFactorOrder, m_inputType, m_labeledNBestList, m_languageModel, m_latticeSamplesFilePath, m_latticeSamplesSize, m_lmbrMapWeight, m_lmbrPRatio, m_lmbrPrecision, m_lmbrPruning, m_lmbrThetas, m_lmcache_cleanup_threshold, m_lmEnableOOVFeature, m_maxDistortion, m_maxHypoStackSize, m_maxNoPartTransOpt, m_maxNoTransOptPerCoverage, m_maxPhraseLength, m_mbr, m_mbrScale, m_mbrSize, m_minHypoStackDiversity, m_nBestFactor, m_nBestFilePath, m_nBestIncludesAlignment, m_nBestSize, m_onlyDistinctNBest, m_outputFactorOrder, m_outputHypoScore, m_outputSearchGraph, m_outputSearchGraphExtended, m_outputWordGraph, m_parameter, m_parsingAlgorithm, m_PrintAlignmentInfo, m_PrintAlignmentInfoNbest, m_printAllDerivations, m_recoverPath, m_reorderingConstraint, m_reorderModels, m_reportAllFactors, m_reportAllFactorsNBest, m_reportSegmentation, m_scoreIndexManager, m_searchAlgorithm, m_startTranslationId, m_threadCount, m_timeout, m_timeout_threshold, m_translationOptionThreshold, m_translationSystems, m_transOptCacheMaxSize, m_unknownWordPenaltyProducer, m_unprunedSearchGraph, m_UseAlignmentInfo, m_useConsensusDecoding, m_useLatticeHypSetForLatticeMBR, m_useLatticeMBR, m_useTransOptCache, m_verboseLevel, m_wordAlignmentSort, m_wordDeletionEnabled, m_wordPenaltyProducers, m_xmlBrackets, m_xmlInputType, Moses::Normal, NULL, Moses::ParseCYKPlus, Moses::ResetUserTime(), Moses::Scan< bool >(), Moses::SentenceInput, SetBooleanParameter(), Moses::Tokenize(), TRACE_ERR, Moses::TransformScore(), VERBOSE, Moses::WordLatticeInput, Moses::XmlExclusive, Moses::XmlIgnore, Moses::XmlInclusive, and Moses::XmlPassThrough.
Referenced by LoadDataStatic().


| static bool Moses::StaticData::LoadDataStatic | ( | Parameter * | parameter | ) | [inline, static] |
Load data into static instance. This function is required as LoadData() is not const.
delete current static instance and replace with another. Used by gui front end
Definition at line 259 of file StaticData.h.
References LoadData().

| bool Moses::StaticData::LoadDecodeGraphs | ( | ) | [protected] |
load decoding steps
Definition at line 1175 of file StaticData.cpp.
References Moses::UserMessage::Add(), Moses::ChartDecoding, CHECK, Moses::DEFAULT_MAX_CHART_SPAN, Moses::Generate, Moses::Parameter::GetParam(), index, Moses::InsertNullFertilityWord, m_decodeGraphBackoff, m_decodeGraphs, m_generationDictionary, m_parameter, m_phraseDictionary, m_searchAlgorithm, NULL, Moses::Tokenize(), and Moses::Translate.
Referenced by LoadData().


| bool Moses::StaticData::LoadGenerationTables | ( | ) | [protected] |
load all generation tables as specified in ini file
Definition at line 889 of file StaticData.cpp.
References CHECK, Moses::FileExists(), Moses::Parameter::GetParam(), IFVERBOSE, m_allWeights, m_generationDictionary, m_maxFactorIdx, m_parameter, m_scoreIndexManager, Moses::Output, Moses::Tokenize(), TRACE_ERR, and VERBOSE.
Referenced by LoadData().


| bool Moses::StaticData::LoadGlobalLexicalModel | ( | ) | [protected] |
Definition at line 782 of file StaticData.cpp.
References Moses::Parameter::GetParam(), m_globalLexicalModels, m_parameter, and Moses::Tokenize().
Referenced by LoadData().


| bool Moses::StaticData::LoadLanguageModels | ( | ) | [protected] |
load all language models as specified in ini file
Definition at line 811 of file StaticData.cpp.
References Moses::LMList::Add(), Moses::UserMessage::Add(), Moses::LanguageModelFactory::CreateLanguageModel(), Moses::LanguageModel::Duplicate(), Moses::Parameter::GetParam(), IFVERBOSE, Moses::IRST, m_allWeights, m_fLMsLoaded, m_languageModel, m_parameter, m_scoreIndexManager, NULL, Moses::PrintUserTime(), and Moses::Tokenize().
Referenced by LoadData().


| bool Moses::StaticData::LoadLexicalReorderingModel | ( | ) | [protected] |
Definition at line 710 of file StaticData.cpp.
References Moses::UserMessage::Add(), Moses::Parameter::GetParam(), m_parameter, m_reorderModels, Moses::Tokenize(), and VERBOSE.
Referenced by LoadData().


| void Moses::StaticData::LoadNonTerminals | ( | ) | [protected] |
Definition at line 1103 of file StaticData.cpp.
References Moses::FactorCollection::AddFactor(), CHECK, Moses::Parameter::GetParam(), Moses::Input, Instance(), m_inputDefaultNonTerminal, m_outputDefaultNonTerminal, m_parameter, m_unknownLHS, Moses::Output, Moses::Word::SetFactor(), Moses::Word::SetIsNonTerminal(), and Moses::Tokenize().
Referenced by LoadChartDecodingParameters().


| void Moses::StaticData::LoadPhraseBasedParameters | ( | ) | [protected] |
Definition at line 1159 of file StaticData.cpp.
References Moses::Parameter::GetParam(), m_allWeights, m_distortionScoreProducers, m_parameter, and m_scoreIndexManager.
Referenced by LoadData().


| bool Moses::StaticData::LoadPhraseTables | ( | ) | [protected] |
load not only the main phrase table but also any auxiliary tables that depend on which features are being used (e.g., word-deletion, word-insertion tables)
Definition at line 941 of file StaticData.cpp.
References Moses::UserMessage::Add(), Moses::Binary, CHECK, Moses::ConfusionNetworkInput, Moses::Parameter::GetParam(), IFVERBOSE, index, m_allWeights, m_fLMsLoaded, m_inputType, m_maxFactorIdx, m_maxNumFactors, m_numInputScores, m_numLinkParams, m_parameter, m_phraseDictionary, Moses::PrintUserTime(), Moses::SuffixArray, Moses::Tokenize(), VERBOSE, and Moses::WordLatticeInput.
Referenced by LoadData().


| bool Moses::StaticData::NBestIncludesAlignment | ( | ) | const [inline] |
Definition at line 391 of file StaticData.h.
References m_nBestIncludesAlignment.
Referenced by OutputNBest().

| bool Moses::StaticData::PrintAlignmentInfo | ( | ) | const [inline] |
| bool Moses::StaticData::PrintAlignmentInfoInNbest | ( | ) | const [inline] |
Definition at line 461 of file StaticData.h.
References m_PrintAlignmentInfoNbest.
Referenced by OutputNBest().

| bool Moses::StaticData::PrintAllDerivations | ( | ) | const [inline] |
Definition at line 578 of file StaticData.h.
References m_printAllDerivations.
Referenced by TranslationTask::Run().

| void Moses::StaticData::ReduceTransOptCache | ( | ) | const [protected] |
Definition at line 1293 of file StaticData.cpp.
References m_transOptCache, m_transOptCacheMaxSize, and VERBOSE.
Referenced by AddTransOptListToCache().

| void Moses::StaticData::SetBooleanParameter | ( | bool * | paramter, | |
| std::string | parameterName, | |||
| bool | defaultValue | |||
| ) | [protected] |
helper fn to set bool param from ini file/command line
Referenced by LoadData().

| void Moses::StaticData::SetLatticeMBRPRatio | ( | float | r | ) | [inline] |
Definition at line 518 of file StaticData.h.
References m_lmbrPRatio.
Referenced by main().

| void Moses::StaticData::SetLatticeMBRPrecision | ( | float | p | ) | [inline] |
Definition at line 512 of file StaticData.h.
References m_lmbrPrecision.
Referenced by main().

| void Moses::StaticData::SetLatticeMBRPruningFactor | ( | size_t | prune | ) | [inline] |
Definition at line 500 of file StaticData.h.
References m_lmbrPruning.
Referenced by main().

| void Moses::StaticData::SetMBRScale | ( | float | scale | ) | [inline] |
Definition at line 494 of file StaticData.h.
References m_mbrScale.
Referenced by main().

| void Moses::StaticData::SetOutputSearchGraph | ( | bool | outputSearchGraph | ) | [inline] |
| void Moses::StaticData::SetUseLatticeMBR | ( | bool | flag | ) | [inline] |
Definition at line 485 of file StaticData.h.
References m_useLatticeMBR.
Referenced by main().

| void Moses::StaticData::SetVerboseLevel | ( | int | x | ) | const [inline] |
| void Moses::StaticData::SetWeightsForScoreProducer | ( | const ScoreProducer * | sp, | |
| const std::vector< float > & | weights | |||
| ) |
Sets the global score vector weights for a given ScoreProducer.
Definition at line 1266 of file StaticData.cpp.
References begin, CHECK, end, Moses::ScoreIndexManager::GetBeginIndex(), Moses::ScoreIndexManager::GetEndIndex(), Moses::ScoreProducer::GetScoreBookkeepingID(), m_allWeights, and m_scoreIndexManager.

| int Moses::StaticData::ThreadCount | ( | ) | const [inline] |
Definition at line 615 of file StaticData.h.
References m_threadCount.
Referenced by Moses::LanguageModelIRST::Load(), and main().

| void Moses::StaticData::UseAlignmentInfo | ( | bool | a | ) | [inline] |
| bool Moses::StaticData::UseAlignmentInfo | ( | ) | const [inline] |
Definition at line 452 of file StaticData.h.
References m_UseAlignmentInfo.
Referenced by Moses::PDTAimp::Create().

| bool Moses::StaticData::UseConsensusDecoding | ( | ) | const [inline] |
Definition at line 482 of file StaticData.h.
References m_useConsensusDecoding.
Referenced by TranslationTask::Run().

| bool Moses::StaticData::UseEarlyDiscarding | ( | ) | const [inline] |
Definition at line 338 of file StaticData.h.
References m_earlyDiscardingThreshold.
Referenced by Moses::SearchNormal::ExpandHypothesis().

| bool Moses::StaticData::UseLatticeHypSetForLatticeMBR | ( | ) | const [inline] |
| bool Moses::StaticData::UseLatticeMBR | ( | ) | const [inline] |
Definition at line 479 of file StaticData.h.
References m_useLatticeMBR.
Referenced by Moses::Hypothesis::CleanupArcList(), and TranslationTask::Run().

| bool Moses::StaticData::UseMBR | ( | ) | const [inline] |
Definition at line 476 of file StaticData.h.
References m_mbr.
Referenced by Moses::Hypothesis::CleanupArcList(), Moses::ChartHypothesis::CleanupArcList(), and TranslationTask::Run().

| bool Moses::StaticData::UseReorderingConstraint | ( | ) | const [inline] |
Definition at line 329 of file StaticData.h.
References m_reorderingConstraint.
Referenced by Moses::Sentence::Read().

| bool Moses::StaticData::UseTimeout | ( | ) | const [inline] |
std::string Moses::StaticData::m_alignmentOutputFile [protected] |
Definition at line 150 of file StaticData.h.
Referenced by GetAlignmentOutputFile(), and LoadData().
std::vector<float> Moses::StaticData::m_allWeights [protected] |
Definition at line 86 of file StaticData.h.
Referenced by GetAllWeights(), LoadData(), LoadGenerationTables(), LoadLanguageModels(), LoadPhraseBasedParameters(), LoadPhraseTables(), and SetWeightsForScoreProducer().
float Moses::StaticData::m_beamWidth [protected] |
std::string Moses::StaticData::m_constraintFileName [protected] |
std::map<long,Phrase> Moses::StaticData::m_constraints [protected] |
bool Moses::StaticData::m_continuePartialTranslation [protected] |
Definition at line 235 of file StaticData.h.
Referenced by ContinuePartialTranslation(), and LoadData().
size_t Moses::StaticData::m_cubePruningDiversity [protected] |
Definition at line 197 of file StaticData.h.
Referenced by GetCubePruningDiversity(), and LoadData().
bool Moses::StaticData::m_cubePruningLazyScoring [protected] |
Definition at line 198 of file StaticData.h.
Referenced by GetCubePruningLazyScoring(), and LoadData().
size_t Moses::StaticData::m_cubePruningPopLimit [protected] |
do not exclude dead ends (chart decoder only)
Definition at line 196 of file StaticData.h.
Referenced by GetCubePruningPopLimit(), and LoadData().
std::vector<size_t> Moses::StaticData::m_decodeGraphBackoff [protected] |
std::vector<DecodeGraph*> Moses::StaticData::m_decodeGraphs [protected] |
Definition at line 89 of file StaticData.h.
Referenced by LoadData(), LoadDecodeGraphs(), and ~StaticData().
std::string Moses::StaticData::m_detailedTranslationReportingFilePath [protected] |
Definition at line 144 of file StaticData.h.
Referenced by GetDetailedTranslationReportingFilePath(), IsDetailedTranslationReportingEnabled(), and LoadData().
bool Moses::StaticData::m_disableDiscarding [protected] |
std::vector<DistortionScoreProducer *> Moses::StaticData::m_distortionScoreProducers [protected] |
Definition at line 139 of file StaticData.h.
Referenced by LoadData(), LoadPhraseBasedParameters(), and ~StaticData().
bool Moses::StaticData::m_dropUnknown [protected] |
float Moses::StaticData::m_earlyDiscardingThreshold [protected] |
Definition at line 95 of file StaticData.h.
Referenced by GetEarlyDiscardingThreshold(), LoadData(), and UseEarlyDiscarding().
std::string Moses::StaticData::m_factorDelimiter [protected] |
bool Moses::StaticData::m_fLMsLoaded [protected] |
Definition at line 121 of file StaticData.h.
Referenced by LoadLanguageModels(), and LoadPhraseTables().
std::vector<GenerationDictionary*> Moses::StaticData::m_generationDictionary [protected] |
Definition at line 78 of file StaticData.h.
Referenced by LoadDecodeGraphs(), LoadGenerationTables(), and ~StaticData().
std::vector<GlobalLexicalModel*> Moses::StaticData::m_globalLexicalModels [protected] |
Definition at line 88 of file StaticData.h.
Referenced by LoadData(), LoadGlobalLexicalModel(), and ~StaticData().
Word Moses::StaticData::m_inputDefaultNonTerminal [protected] |
Definition at line 204 of file StaticData.h.
Referenced by GetInputDefaultNonTerminal(), and LoadNonTerminals().
std::vector<FactorType> Moses::StaticData::m_inputFactorOrder [protected] |
InputTypeEnum Moses::StaticData::m_inputType [protected] |
Definition at line 134 of file StaticData.h.
Referenced by GetInputType(), LoadData(), and LoadPhraseTables().
bool Moses::StaticData::m_isAlwaysCreateDirectTranslationOption [protected] |
maximum size for persistent translation option cache
Definition at line 185 of file StaticData.h.
Referenced by IsAlwaysCreateDirectTranslationOption().
bool Moses::StaticData::m_labeledNBestList [protected] |
LMList Moses::StaticData::m_languageModel [protected] |
Definition at line 81 of file StaticData.h.
Referenced by GetLMList(), LoadData(), LoadLanguageModels(), and ~StaticData().
std::string Moses::StaticData::m_latticeSamplesFilePath [protected] |
Definition at line 120 of file StaticData.h.
Referenced by GetLatticeSamplesFilePath(), IsNBestEnabled(), and LoadData().
size_t Moses::StaticData::m_latticeSamplesSize [protected] |
float Moses::StaticData::m_lmbrMapWeight [protected] |
decaying factor for ngram thetas - see Tromble et al 08 for more details
Definition at line 169 of file StaticData.h.
Referenced by GetLatticeMBRMapWeight(), and LoadData().
float Moses::StaticData::m_lmbrPRatio [protected] |
unigram precision theta - see Tromble et al 08 for more details
Definition at line 168 of file StaticData.h.
Referenced by GetLatticeMBRPRatio(), LoadData(), and SetLatticeMBRPRatio().
float Moses::StaticData::m_lmbrPrecision [protected] |
to use nbest as hypothesis set during lattice MBR
Definition at line 167 of file StaticData.h.
Referenced by GetLatticeMBRPrecision(), LoadData(), and SetLatticeMBRPrecision().
size_t Moses::StaticData::m_lmbrPruning [protected] |
scaling factor for computing marginal probability of candidate translation
Definition at line 164 of file StaticData.h.
Referenced by GetLatticeMBRPruningFactor(), LoadData(), and SetLatticeMBRPruningFactor().
std::vector<float> Moses::StaticData::m_lmbrThetas [protected] |
average number of nodes per word wanted in pruned lattice
Definition at line 165 of file StaticData.h.
Referenced by GetLatticeMBRThetas(), and LoadData().
size_t Moses::StaticData::m_lmcache_cleanup_threshold [protected] |
Weight given to the map solution. See Kumar et al 09 for details.
Definition at line 171 of file StaticData.h.
Referenced by GetLMCacheCleanupThreshold(), and LoadData().
bool Moses::StaticData::m_lmEnableOOVFeature [protected] |
number of translations after which LM claenup is performed (0=never, N=after N translations; default is 1)
Definition at line 172 of file StaticData.h.
Referenced by GetLMEnableOOVFeature(), and LoadData().
int Moses::StaticData::m_maxDistortion [protected] |
size_t Moses::StaticData::m_maxFactorIdx[2] [protected] |
by default, |, but it can be changed
Definition at line 153 of file StaticData.h.
Referenced by GetMaxNumFactors(), LoadGenerationTables(), LoadPhraseTables(), and StaticData().
size_t Moses::StaticData::m_maxHypoStackSize [protected] |
use additional reordering constraints
hypothesis-stack size that triggers pruning
Definition at line 108 of file StaticData.h.
Referenced by GetMaxHypoStackSize(), and LoadData().
size_t Moses::StaticData::m_maxNoPartTransOpt [protected] |
size_t Moses::StaticData::m_maxNoTransOptPerCoverage [protected] |
Definition at line 108 of file StaticData.h.
Referenced by GetMaxNoTransOptPerCoverage(), and LoadData().
size_t Moses::StaticData::m_maxNumFactors [protected] |
number of factors on source and target side
Definition at line 154 of file StaticData.h.
Referenced by GetMaxNumFactors(), and LoadPhraseTables().
size_t Moses::StaticData::m_maxPhraseLength [protected] |
bool Moses::StaticData::m_mbr [protected] |
strings to use as XML tags' opening and closing brackets. Default are "<" and ">"
Definition at line 159 of file StaticData.h.
Referenced by IsNBestEnabled(), LoadData(), and UseMBR().
float Moses::StaticData::m_mbrScale [protected] |
number of translation candidates considered
Definition at line 163 of file StaticData.h.
Referenced by GetMBRScale(), LoadData(), and SetMBRScale().
size_t Moses::StaticData::m_mbrSize [protected] |
Use Consensus decoding (DeNero et al 2009).
Definition at line 162 of file StaticData.h.
Referenced by GetMBRSize(), and LoadData().
size_t Moses::StaticData::m_minHypoStackDiversity [protected] |
minimum number of hypothesis in stack for each source word coverage
Definition at line 108 of file StaticData.h.
Referenced by GetMinHypoStackDiversity(), and LoadData().
size_t Moses::StaticData::m_nBestFactor [protected] |
std::string Moses::StaticData::m_nBestFilePath [protected] |
Definition at line 120 of file StaticData.h.
Referenced by GetNBestFilePath(), IsNBestEnabled(), and LoadData().
bool Moses::StaticData::m_nBestIncludesAlignment [protected] |
Definition at line 121 of file StaticData.h.
Referenced by LoadData(), and NBestIncludesAlignment().
size_t Moses::StaticData::m_nBestSize [protected] |
size_t Moses::StaticData::m_numInputScores [protected] |
Definition at line 135 of file StaticData.h.
Referenced by GetNumInputScores(), and LoadPhraseTables().
size_t Moses::StaticData::m_numLinkParams [protected] |
Definition at line 108 of file StaticData.h.
Referenced by GetNumLinkParams(), and LoadPhraseTables().
bool Moses::StaticData::m_onlyDistinctNBest [protected] |
Word Moses::StaticData::m_outputDefaultNonTerminal [protected] |
Definition at line 204 of file StaticData.h.
Referenced by GetOutputDefaultNonTerminal(), and LoadNonTerminals().
std::vector<FactorType> Moses::StaticData::m_outputFactorOrder [protected] |
bool Moses::StaticData::m_outputHypoScore [protected] |
bool Moses::StaticData::m_outputSearchGraph [protected] |
whether to output word graph
Definition at line 189 of file StaticData.h.
Referenced by GetOutputSearchGraph(), IsNBestEnabled(), LoadData(), and SetOutputSearchGraph().
bool Moses::StaticData::m_outputSearchGraphExtended [protected] |
whether to output search graph
Definition at line 190 of file StaticData.h.
Referenced by GetOutputSearchGraphExtended(), and LoadData().
bool Moses::StaticData::m_outputWordGraph [protected] |
constructor. only the 1 static variable can be created
Definition at line 188 of file StaticData.h.
Referenced by GetOutputWordGraph(), and LoadData().
Parameter* Moses::StaticData::m_parameter [protected] |
Definition at line 79 of file StaticData.h.
Referenced by GetDescription(), GetParam(), LoadChartDecodingParameters(), LoadData(), LoadDecodeGraphs(), LoadGenerationTables(), LoadGlobalLexicalModel(), LoadLanguageModels(), LoadLexicalReorderingModel(), LoadNonTerminals(), LoadPhraseBasedParameters(), and LoadPhraseTables().
std::vector<PhraseDictionaryFeature*> Moses::StaticData::m_phraseDictionary [protected] |
Definition at line 77 of file StaticData.h.
Referenced by LoadDecodeGraphs(), LoadPhraseTables(), and ~StaticData().
bool Moses::StaticData::m_PrintAlignmentInfo [protected] |
bool Moses::StaticData::m_PrintAlignmentInfoNbest [protected] |
Definition at line 148 of file StaticData.h.
Referenced by LoadData(), and PrintAlignmentInfoInNbest().
bool Moses::StaticData::m_printAllDerivations [protected] |
bool Moses::StaticData::m_recoverPath [protected] |
bool Moses::StaticData::m_reorderingConstraint [protected] |
Definition at line 105 of file StaticData.h.
Referenced by LoadData(), and UseReorderingConstraint().
std::vector<LexicalReordering*> Moses::StaticData::m_reorderModels [protected] |
Definition at line 87 of file StaticData.h.
Referenced by LoadData(), LoadLexicalReorderingModel(), and ~StaticData().
bool Moses::StaticData::m_reportAllFactors [protected] |
bool Moses::StaticData::m_reportAllFactorsNBest [protected] |
Definition at line 143 of file StaticData.h.
Referenced by GetReportAllFactorsNBest(), and LoadData().
bool Moses::StaticData::m_reportSegmentation [protected] |
size_t Moses::StaticData::m_ruleLimit [protected] |
Definition at line 199 of file StaticData.h.
Referenced by GetRuleLimit(), and LoadChartDecodingParameters().
Definition at line 85 of file StaticData.h.
Referenced by GetScoreIndexManager(), GetTotalScoreComponents(), LoadData(), LoadGenerationTables(), LoadLanguageModels(), LoadPhraseBasedParameters(), and SetWeightsForScoreProducer().
SearchAlgorithm Moses::StaticData::m_searchAlgorithm [protected] |
Definition at line 133 of file StaticData.h.
Referenced by GetSearchAlgorithm(), LoadData(), and LoadDecodeGraphs().
Definition at line 205 of file StaticData.h.
Referenced by GetSourceLabelOverlap(), and LoadChartDecodingParameters().
bool Moses::StaticData::m_sourceStartPosMattersForRecombination [protected] |
Definition at line 128 of file StaticData.h.
Referenced by GetSourceStartPosMattersForRecombination().
long Moses::StaticData::m_startTranslationId [protected] |
int Moses::StaticData::m_threadCount [protected] |
bool Moses::StaticData::m_timeout [protected] |
size_t Moses::StaticData::m_timeout_threshold [protected] |
use timeout
Definition at line 175 of file StaticData.h.
Referenced by GetTimeoutThreshold(), and LoadData().
float Moses::StaticData::m_translationOptionThreshold [protected] |
Definition at line 95 of file StaticData.h.
Referenced by GetTranslationOptionThreshold(), and LoadData().
std::map<std::string, TranslationSystem> Moses::StaticData::m_translationSystems [protected] |
std::map<std::pair<size_t, Phrase>, std::pair<TranslationOptionList*,clock_t> > Moses::StaticData::m_transOptCache [mutable, protected] |
flag indicating, if the persistent translation option cache should be used
Definition at line 178 of file StaticData.h.
Referenced by AddTransOptListToCache(), ClearTransOptionCache(), FindTransOptListInCache(), and ReduceTransOptCache().
size_t Moses::StaticData::m_transOptCacheMaxSize [protected] |
persistent translation option cache
Definition at line 179 of file StaticData.h.
Referenced by AddTransOptListToCache(), LoadData(), and ReduceTransOptCache().
UnknownLHSList Moses::StaticData::m_unknownLHS [protected] |
bool Moses::StaticData::m_unprunedSearchGraph [protected] |
... in extended format
Definition at line 194 of file StaticData.h.
Referenced by GetUnprunedSearchGraph(), and LoadData().
bool Moses::StaticData::m_UseAlignmentInfo [protected] |
bool Moses::StaticData::m_useConsensusDecoding [protected] |
use MBR decoder
Definition at line 161 of file StaticData.h.
Referenced by IsNBestEnabled(), LoadData(), and UseConsensusDecoding().
bool Moses::StaticData::m_useLatticeHypSetForLatticeMBR [protected] |
theta(s) for lattice mbr calculation
Definition at line 166 of file StaticData.h.
Referenced by LoadData(), and UseLatticeHypSetForLatticeMBR().
bool Moses::StaticData::m_useLatticeMBR [protected] |
use MBR decoder
Definition at line 160 of file StaticData.h.
Referenced by IsNBestEnabled(), LoadData(), SetUseLatticeMBR(), and UseLatticeMBR().
bool Moses::StaticData::m_useTransOptCache [protected] |
seconds after which time out is activated
Definition at line 177 of file StaticData.h.
Referenced by GetUseTransOptCache(), and LoadData().
size_t Moses::StaticData::m_verboseLevel [mutable, protected] |
Definition at line 137 of file StaticData.h.
Referenced by GetVerboseLevel(), LoadData(), and SetVerboseLevel().
bool Moses::StaticData::m_wordDeletionEnabled [protected] |
false = treat unknown words as unknowns, and translate them as themselves; true = drop (ignore) them
Definition at line 123 of file StaticData.h.
Referenced by IsWordDeletionEnabled(), and LoadData().
float Moses::StaticData::m_wordDeletionWeight [protected] |
Definition at line 95 of file StaticData.h.
std::vector<WordPenaltyProducer*> Moses::StaticData::m_wordPenaltyProducers [protected] |
std::pair<std::string,std::string> Moses::StaticData::m_xmlBrackets [protected] |
method for handling sentence XML input
Definition at line 157 of file StaticData.h.
Referenced by GetXmlBrackets(), LoadData(), and StaticData().
XmlInputType Moses::StaticData::m_xmlInputType [protected] |
max number of factors on both source and target sides
Definition at line 156 of file StaticData.h.
Referenced by GetXmlInputType(), and LoadData().
1.5.9