Moses::StaticData Class Reference

#include <StaticData.h>

Collaboration diagram for Moses::StaticData:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool IsAlwaysCreateDirectTranslationOption () const
 ~StaticData ()
 destructor
bool LoadData (Parameter *parameter)
 Main function to load everything. Also initialize the Parameter object.
const PARAM_VECGetParam (const std::string &paramName) 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 PhraseGetConstrainingPhrase (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 ScoreIndexManagerGetScoreIndexManager () const
const TranslationSystemGetTranslationSystem (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 TranslationOptionListFindTransOptListInCache (const DecodeGraph &decodeGraph, const Phrase &sourcePhrase) const
bool PrintAllDerivations () const
const UnknownLHSListGetUnknownLHS () const
const WordGetInputDefaultNonTerminal () const
const WordGetOutputDefaultNonTerminal () 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 StaticDataInstance ()
 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, Phrasem_constraints
std::vector
< PhraseDictionaryFeature * > 
m_phraseDictionary
std::vector
< GenerationDictionary * > 
m_generationDictionary
Parameterm_parameter
std::vector< FactorTypem_inputFactorOrder
std::vector< FactorTypem_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
UnknownWordPenaltyProducerm_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


Detailed Description

Contains global variables and contants

Definition at line 70 of file StaticData.h.


Constructor & Destructor Documentation

Moses::StaticData::StaticData (  )  [protected]

Definition at line 76 of file StaticData.cpp.

References Moses::Phrase::InitializeMemPool(), m_maxFactorIdx, and m_xmlBrackets.

Here is the call graph for this function:

Moses::StaticData::~StaticData (  ) 


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::StaticData::ClearTransOptionCache (  )  const

Definition at line 1333 of file StaticData.cpp.

References m_transOptCache.

Referenced by ~StaticData().

Here is the caller graph for this function:

bool Moses::StaticData::ContinuePartialTranslation (  )  const [inline]

Definition at line 607 of file StaticData.h.

References m_continuePartialTranslation.

Referenced by Moses::Sentence::Read().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

const std::string& Moses::StaticData::GetAlignmentOutputFile (  )  const [inline]

Definition at line 384 of file StaticData.h.

References m_alignmentOutputFile.

Referenced by main().

Here is the caller graph for this function:

const std::vector<float>& Moses::StaticData::GetAllWeights (  )  const [inline]

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

size_t Moses::StaticData::GetCubePruningDiversity (  )  const [inline]

Definition at line 317 of file StaticData.h.

References m_cubePruningDiversity.

Referenced by Moses::SearchCubePruning::ProcessSentence().

Here is the caller graph for this function:

bool Moses::StaticData::GetCubePruningLazyScoring (  )  const [inline]

Definition at line 320 of file StaticData.h.

References m_cubePruningLazyScoring.

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().

Here is the caller graph for this function:

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.

Here is the call graph for this function:

const std::string& Moses::StaticData::GetDetailedTranslationReportingFilePath (  )  const [inline]

Definition at line 380 of file StaticData.h.

References m_detailedTranslationReportingFilePath.

bool Moses::StaticData::GetDisableDiscarding (  )  const [inline]

Definition at line 284 of file StaticData.h.

References m_disableDiscarding.

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

float Moses::StaticData::GetEarlyDiscardingThreshold (  )  const [inline]

Definition at line 335 of file StaticData.h.

References m_earlyDiscardingThreshold.

Referenced by Moses::SearchNormal::ExpandHypothesis().

Here is the caller graph for this function:

const std::string& Moses::StaticData::GetFactorDelimiter (  )  const [inline]

const Word& Moses::StaticData::GetInputDefaultNonTerminal (  )  const [inline]

Definition at line 586 of file StaticData.h.

References m_inputDefaultNonTerminal.

Referenced by Moses::TreeInput::Read().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

InputTypeEnum Moses::StaticData::GetInputType (  )  const [inline]

Definition at line 432 of file StaticData.h.

References m_inputType.

Referenced by main(), and Moses::SearchNormal::ProcessOneHypothesis().

Here is the caller graph for this function:

float Moses::StaticData::GetLatticeMBRMapWeight (  )  const [inline]

Definition at line 522 of file StaticData.h.

References m_lmbrMapWeight.

Referenced by getLatticeMBRNBest().

Here is the caller graph for this function:

float Moses::StaticData::GetLatticeMBRPRatio (  )  const [inline]

Definition at line 515 of file StaticData.h.

References m_lmbrPRatio.

Referenced by getLatticeMBRNBest().

Here is the caller graph for this function:

float Moses::StaticData::GetLatticeMBRPrecision (  )  const [inline]

Definition at line 509 of file StaticData.h.

References m_lmbrPrecision.

Referenced by getLatticeMBRNBest().

Here is the caller graph for this function:

size_t Moses::StaticData::GetLatticeMBRPruningFactor (  )  const [inline]

Definition at line 497 of file StaticData.h.

References m_lmbrPruning.

Referenced by doConsensusDecoding(), and getLatticeMBRNBest().

Here is the caller graph for this function:

const std::vector<float>& Moses::StaticData::GetLatticeMBRThetas (  )  const [inline]

Definition at line 503 of file StaticData.h.

References m_lmbrThetas.

Referenced by getLatticeMBRNBest().

Here is the caller graph for this function:

const std::string& Moses::StaticData::GetLatticeSamplesFilePath (  )  const [inline]

Definition at line 419 of file StaticData.h.

References m_latticeSamplesFilePath.

Referenced by main().

Here is the caller graph for this function:

size_t Moses::StaticData::GetLatticeSamplesSize (  )  const [inline]

Definition at line 415 of file StaticData.h.

References m_latticeSamplesSize.

Referenced by main(), and TranslationTask::Run().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

bool Moses::StaticData::GetLMEnableOOVFeature (  )  const [inline]

Definition at line 537 of file StaticData.h.

References m_lmEnableOOVFeature.

Referenced by Moses::LanguageModel::LanguageModel().

Here is the caller graph for this function:

LMList Moses::StaticData::GetLMList (  )  const [inline]

Definition at line 441 of file StaticData.h.

References m_languageModel.

int Moses::StaticData::GetMaxDistortion (  )  const [inline]

size_t Moses::StaticData::GetMaxHypoStackSize (  )  const [inline]

size_t Moses::StaticData::GetMaxNoPartTransOpt (  )  const [inline]

Definition at line 290 of file StaticData.h.

References m_maxNoPartTransOpt.

Referenced by Moses::PartialTranslOptColl::PartialTranslOptColl().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

size_t Moses::StaticData::GetMaxNumFactors (  )  const [inline]

Definition at line 473 of file StaticData.h.

References m_maxNumFactors.

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().

Here is the caller graph for this function:

size_t Moses::StaticData::GetMaxPhraseLength (  )  const [inline]

float Moses::StaticData::GetMBRScale (  )  const [inline]

Definition at line 491 of file StaticData.h.

References m_mbrScale.

Referenced by doConsensusDecoding(), and getLatticeMBRNBest().

Here is the caller graph for this function:

size_t Moses::StaticData::GetMBRSize (  )  const [inline]

Definition at line 488 of file StaticData.h.

References m_mbrSize.

Referenced by main(), and TranslationTask::Run().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

const std::string& Moses::StaticData::GetNBestFilePath (  )  const [inline]

Definition at line 405 of file StaticData.h.

References m_nBestFilePath.

Referenced by GetIODevice(), and main().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

const Word& Moses::StaticData::GetOutputDefaultNonTerminal (  )  const [inline]

Definition at line 589 of file StaticData.h.

References m_outputDefaultNonTerminal.

const std::vector<FactorType>& Moses::StaticData::GetOutputFactorOrder (  )  const [inline]

bool Moses::StaticData::GetOutputHypoScore (  )  const [inline]

Definition at line 597 of file StaticData.h.

References m_outputHypoScore.

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().

Here is the caller graph for this function:

bool Moses::StaticData::GetOutputSearchGraphExtended (  )  const [inline]

Definition at line 547 of file StaticData.h.

References m_outputSearchGraphExtended.

Referenced by Moses::OutputSearchNode().

Here is the caller graph for this function:

bool Moses::StaticData::GetOutputWordGraph (  )  const [inline]

Definition at line 426 of file StaticData.h.

References m_outputWordGraph.

Referenced by main().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

ParsingAlgorithm Moses::StaticData::GetParsingAlgorithm (  )  const [inline]

Definition at line 435 of file StaticData.h.

References m_parsingAlgorithm.

bool Moses::StaticData::GetReportAllFactors (  )  const [inline]

Definition at line 371 of file StaticData.h.

References m_reportAllFactors.

Referenced by main(), and TranslationTask::Run().

Here is the caller graph for this function:

bool Moses::StaticData::GetReportAllFactorsNBest (  )  const [inline]

Definition at line 374 of file StaticData.h.

References m_reportAllFactorsNBest.

Referenced by OutputNBest().

Here is the caller graph for this function:

bool Moses::StaticData::GetReportSegmentation (  )  const [inline]

Definition at line 368 of file StaticData.h.

References m_reportSegmentation.

Referenced by main(), and TranslationTask::Run().

Here is the caller graph for this function:

float Moses::StaticData::GetRuleCountThreshold (  )  const [inline]

Definition at line 603 of file StaticData.h.

size_t Moses::StaticData::GetRuleLimit (  )  const [inline]

Definition at line 600 of file StaticData.h.

References m_ruleLimit.

const ScoreIndexManager& Moses::StaticData::GetScoreIndexManager (  )  const [inline]

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().

Here is the caller graph for this function:

SourceLabelOverlap Moses::StaticData::GetSourceLabelOverlap (  )  const [inline]

Definition at line 593 of file StaticData.h.

References m_sourceLabelOverlap.

Referenced by Moses::TreeInput::AddChartLabel().

Here is the caller graph for this function:

bool Moses::StaticData::GetSourceStartPosMattersForRecombination (  )  const [inline]

Definition at line 278 of file StaticData.h.

References m_sourceStartPosMattersForRecombination.

long Moses::StaticData::GetStartTranslationId (  )  const [inline]

Definition at line 619 of file StaticData.h.

References m_startTranslationId.

Referenced by LoadData().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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.

Here is the call graph for this function:

float Moses::StaticData::GetTranslationOptionThreshold (  )  const [inline]

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().

Here is the caller graph for this function:

const UnknownLHSList& Moses::StaticData::GetUnknownLHS (  )  const [inline]

Definition at line 582 of file StaticData.h.

References m_unknownLHS.

Referenced by Moses::ChartTranslationOptionCollection::ProcessOneUnknownWord().

Here is the caller graph for this function:

bool Moses::StaticData::GetUnprunedSearchGraph (  )  const [inline]

Definition at line 555 of file StaticData.h.

References m_unprunedSearchGraph.

Referenced by Moses::ChartHypothesisCollection::GetSearchGraph().

Here is the caller graph for this function:

bool Moses::StaticData::GetUseTransOptCache (  )  const [inline]

Definition at line 567 of file StaticData.h.

References m_useTransOptCache.

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

Here is the caller graph for this function:

size_t Moses::StaticData::GetVerboseLevel (  )  const [inline]

Definition at line 362 of file StaticData.h.

References m_verboseLevel.

WordAlignmentSort Moses::StaticData::GetWordAlignmentSort (  )  const [inline]

Definition at line 611 of file StaticData.h.

References m_wordAlignmentSort.

Referenced by Moses::AlignmentInfo::GetSortedAlignments().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

XmlInputType Moses::StaticData::GetXmlInputType (  )  const [inline]

Definition at line 559 of file StaticData.h.

References m_xmlInputType.

Referenced by Moses::Sentence::Read().

Here is the caller graph for this function:

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]

bool Moses::StaticData::IsDetailedTranslationReportingEnabled (  )  const [inline]

Definition at line 377 of file StaticData.h.

References m_detailedTranslationReportingFilePath.

Referenced by main().

Here is the caller graph for this function:

bool Moses::StaticData::IsLabeledNBestList (  )  const [inline]

Definition at line 388 of file StaticData.h.

References m_labeledNBestList.

Referenced by OutputNBest().

Here is the caller graph for this function:

bool Moses::StaticData::IsNBestEnabled (  )  const [inline]

size_t Moses::StaticData::IsPathRecoveryEnabled (  )  const [inline]

Definition at line 323 of file StaticData.h.

References m_recoverPath.

Referenced by TranslationTask::Run().

Here is the caller graph for this function:

bool Moses::StaticData::IsWordDeletionEnabled (  )  const [inline]

Definition at line 305 of file StaticData.h.

References m_wordDeletionEnabled.

Referenced by Moses::RuleTableLoaderStandard::Load().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

bool Moses::StaticData::LoadDecodeGraphs (  )  [protected]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::StaticData::LoadNonTerminals (  )  [protected]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Moses::StaticData::NBestIncludesAlignment (  )  const [inline]

Definition at line 391 of file StaticData.h.

References m_nBestIncludesAlignment.

Referenced by OutputNBest().

Here is the caller graph for this function:

bool Moses::StaticData::PrintAlignmentInfo (  )  const [inline]

Definition at line 458 of file StaticData.h.

References m_PrintAlignmentInfo.

bool Moses::StaticData::PrintAlignmentInfoInNbest (  )  const [inline]

Definition at line 461 of file StaticData.h.

References m_PrintAlignmentInfoNbest.

Referenced by OutputNBest().

Here is the caller graph for this function:

bool Moses::StaticData::PrintAllDerivations (  )  const [inline]

Definition at line 578 of file StaticData.h.

References m_printAllDerivations.

Referenced by TranslationTask::Run().

Here is the caller graph for this function:

void Moses::StaticData::ReduceTransOptCache (  )  const [protected]

Definition at line 1293 of file StaticData.cpp.

References m_transOptCache, m_transOptCacheMaxSize, and VERBOSE.

Referenced by AddTransOptListToCache().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void Moses::StaticData::SetLatticeMBRPRatio ( float  r  )  [inline]

Definition at line 518 of file StaticData.h.

References m_lmbrPRatio.

Referenced by main().

Here is the caller graph for this function:

void Moses::StaticData::SetLatticeMBRPrecision ( float  p  )  [inline]

Definition at line 512 of file StaticData.h.

References m_lmbrPrecision.

Referenced by main().

Here is the caller graph for this function:

void Moses::StaticData::SetLatticeMBRPruningFactor ( size_t  prune  )  [inline]

Definition at line 500 of file StaticData.h.

References m_lmbrPruning.

Referenced by main().

Here is the caller graph for this function:

void Moses::StaticData::SetMBRScale ( float  scale  )  [inline]

Definition at line 494 of file StaticData.h.

References m_mbrScale.

Referenced by main().

Here is the caller graph for this function:

void Moses::StaticData::SetOutputSearchGraph ( bool  outputSearchGraph  )  [inline]

Definition at line 544 of file StaticData.h.

References m_outputSearchGraph.

void Moses::StaticData::SetUseLatticeMBR ( bool  flag  )  [inline]

Definition at line 485 of file StaticData.h.

References m_useLatticeMBR.

Referenced by main().

Here is the caller graph for this function:

void Moses::StaticData::SetVerboseLevel ( int  x  )  const [inline]

Definition at line 365 of file StaticData.h.

References m_verboseLevel.

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.

Here is the call graph for this function:

int Moses::StaticData::ThreadCount (  )  const [inline]

Definition at line 615 of file StaticData.h.

References m_threadCount.

Referenced by Moses::LanguageModelIRST::Load(), and main().

Here is the caller graph for this function:

void Moses::StaticData::UseAlignmentInfo ( bool  a  )  [inline]

Definition at line 455 of file StaticData.h.

References m_UseAlignmentInfo.

bool Moses::StaticData::UseAlignmentInfo (  )  const [inline]

Definition at line 452 of file StaticData.h.

References m_UseAlignmentInfo.

Referenced by Moses::PDTAimp::Create().

Here is the caller graph for this function:

bool Moses::StaticData::UseConsensusDecoding (  )  const [inline]

Definition at line 482 of file StaticData.h.

References m_useConsensusDecoding.

Referenced by TranslationTask::Run().

Here is the caller graph for this function:

bool Moses::StaticData::UseEarlyDiscarding (  )  const [inline]

Definition at line 338 of file StaticData.h.

References m_earlyDiscardingThreshold.

Referenced by Moses::SearchNormal::ExpandHypothesis().

Here is the caller graph for this function:

bool Moses::StaticData::UseLatticeHypSetForLatticeMBR (  )  const [inline]

Definition at line 506 of file StaticData.h.

References m_useLatticeHypSetForLatticeMBR.

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

bool Moses::StaticData::UseReorderingConstraint (  )  const [inline]

Definition at line 329 of file StaticData.h.

References m_reorderingConstraint.

Referenced by Moses::Sentence::Read().

Here is the caller graph for this function:

bool Moses::StaticData::UseTimeout (  )  const [inline]

Definition at line 526 of file StaticData.h.

References m_timeout.


Member Data Documentation

Definition at line 150 of file StaticData.h.

Referenced by GetAlignmentOutputFile(), and LoadData().

std::vector<float> Moses::StaticData::m_allWeights [protected]

float Moses::StaticData::m_beamWidth [protected]

Definition at line 95 of file StaticData.h.

Referenced by GetBeamWidth(), and LoadData().

std::string Moses::StaticData::m_constraintFileName [protected]

Definition at line 118 of file StaticData.h.

Referenced by LoadData().

std::map<long,Phrase> Moses::StaticData::m_constraints [protected]

Definition at line 76 of file StaticData.h.

Referenced by GetConstrainingPhrase(), and LoadData().

Definition at line 235 of file StaticData.h.

Referenced by ContinuePartialTranslation(), and LoadData().

Definition at line 197 of file StaticData.h.

Referenced by GetCubePruningDiversity(), and LoadData().

Definition at line 198 of file StaticData.h.

Referenced by GetCubePruningLazyScoring(), and LoadData().

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]

Definition at line 90 of file StaticData.h.

Referenced by LoadData(), and LoadDecodeGraphs().

Definition at line 89 of file StaticData.h.

Referenced by LoadData(), LoadDecodeGraphs(), and ~StaticData().

Definition at line 125 of file StaticData.h.

Referenced by GetDisableDiscarding(), and LoadData().

Definition at line 139 of file StaticData.h.

Referenced by LoadData(), LoadPhraseBasedParameters(), and ~StaticData().

Definition at line 122 of file StaticData.h.

Referenced by GetDropUnknown(), and LoadData().

Definition at line 95 of file StaticData.h.

Referenced by GetEarlyDiscardingThreshold(), LoadData(), and UseEarlyDiscarding().

std::string Moses::StaticData::m_factorDelimiter [protected]

Definition at line 152 of file StaticData.h.

Referenced by GetFactorDelimiter(), and LoadData().

Definition at line 121 of file StaticData.h.

Referenced by LoadLanguageModels(), and LoadPhraseTables().

Definition at line 78 of file StaticData.h.

Referenced by LoadDecodeGraphs(), LoadGenerationTables(), and ~StaticData().

Definition at line 88 of file StaticData.h.

Referenced by LoadData(), LoadGlobalLexicalModel(), and ~StaticData().

Definition at line 204 of file StaticData.h.

Referenced by GetInputDefaultNonTerminal(), and LoadNonTerminals().

Definition at line 80 of file StaticData.h.

Referenced by GetInputFactorOrder(), and LoadData().

Definition at line 134 of file StaticData.h.

Referenced by GetInputType(), LoadData(), and LoadPhraseTables().

maximum size for persistent translation option cache

Definition at line 185 of file StaticData.h.

Referenced by IsAlwaysCreateDirectTranslationOption().

Definition at line 121 of file StaticData.h.

Referenced by IsLabeledNBestList(), and LoadData().

Definition at line 81 of file StaticData.h.

Referenced by GetLMList(), LoadData(), LoadLanguageModels(), and ~StaticData().

Definition at line 120 of file StaticData.h.

Referenced by GetLatticeSamplesFilePath(), IsNBestEnabled(), and LoadData().

Definition at line 108 of file StaticData.h.

Referenced by GetLatticeSamplesSize(), and LoadData().

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().

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().

to use nbest as hypothesis set during lattice MBR

Definition at line 167 of file StaticData.h.

Referenced by GetLatticeMBRPrecision(), LoadData(), and SetLatticeMBRPrecision().

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().

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().

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().

Definition at line 101 of file StaticData.h.

Referenced by GetMaxDistortion(), and LoadData().

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().

use additional reordering constraints

hypothesis-stack size that triggers pruning

Definition at line 108 of file StaticData.h.

Referenced by GetMaxHypoStackSize(), and LoadData().

Definition at line 108 of file StaticData.h.

Referenced by GetMaxNoPartTransOpt(), and LoadData().

Definition at line 108 of file StaticData.h.

Referenced by GetMaxNoTransOptPerCoverage(), and LoadData().

number of factors on source and target side

Definition at line 154 of file StaticData.h.

Referenced by GetMaxNumFactors(), and LoadPhraseTables().

Definition at line 108 of file StaticData.h.

Referenced by GetMaxPhraseLength(), and LoadData().

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().

minimum number of hypothesis in stack for each source word coverage

Definition at line 108 of file StaticData.h.

Referenced by GetMinHypoStackDiversity(), and LoadData().

Definition at line 108 of file StaticData.h.

Referenced by GetNBestFactor(), and LoadData().

std::string Moses::StaticData::m_nBestFilePath [protected]

Definition at line 120 of file StaticData.h.

Referenced by GetNBestFilePath(), IsNBestEnabled(), and LoadData().

Definition at line 121 of file StaticData.h.

Referenced by LoadData(), and NBestIncludesAlignment().

size_t Moses::StaticData::m_nBestSize [protected]

Definition at line 108 of file StaticData.h.

Referenced by GetNBestSize(), and LoadData().

Definition at line 135 of file StaticData.h.

Referenced by GetNumInputScores(), and LoadPhraseTables().

Definition at line 108 of file StaticData.h.

Referenced by GetNumLinkParams(), and LoadPhraseTables().

Definition at line 145 of file StaticData.h.

Referenced by GetDistinctNBest(), and LoadData().

Definition at line 204 of file StaticData.h.

Referenced by GetOutputDefaultNonTerminal(), and LoadNonTerminals().

Definition at line 80 of file StaticData.h.

Referenced by GetOutputFactorOrder(), and LoadData().

Definition at line 130 of file StaticData.h.

Referenced by GetOutputHypoScore(), and LoadData().

whether to output word graph

Definition at line 189 of file StaticData.h.

Referenced by GetOutputSearchGraph(), IsNBestEnabled(), LoadData(), and SetOutputSearchGraph().

whether to output search graph

Definition at line 190 of file StaticData.h.

Referenced by GetOutputSearchGraphExtended(), and LoadData().

constructor. only the 1 static variable can be created

Definition at line 188 of file StaticData.h.

Referenced by GetOutputWordGraph(), and LoadData().

Definition at line 132 of file StaticData.h.

Referenced by GetParsingAlgorithm(), and LoadData().

Definition at line 77 of file StaticData.h.

Referenced by LoadDecodeGraphs(), LoadPhraseTables(), and ~StaticData().

Definition at line 147 of file StaticData.h.

Referenced by LoadData(), and PrintAlignmentInfo().

Definition at line 148 of file StaticData.h.

Referenced by LoadData(), and PrintAlignmentInfoInNbest().

Definition at line 126 of file StaticData.h.

Referenced by LoadData(), and PrintAllDerivations().

Definition at line 129 of file StaticData.h.

Referenced by IsPathRecoveryEnabled(), and LoadData().

Definition at line 105 of file StaticData.h.

Referenced by LoadData(), and UseReorderingConstraint().

Definition at line 87 of file StaticData.h.

Referenced by LoadData(), LoadLexicalReorderingModel(), and ~StaticData().

Definition at line 142 of file StaticData.h.

Referenced by GetReportAllFactors(), and LoadData().

Definition at line 143 of file StaticData.h.

Referenced by GetReportAllFactorsNBest(), and LoadData().

Definition at line 141 of file StaticData.h.

Referenced by GetReportSegmentation(), and LoadData().

size_t Moses::StaticData::m_ruleLimit [protected]

Definition at line 199 of file StaticData.h.

Referenced by GetRuleLimit(), and LoadChartDecodingParameters().

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().

Definition at line 128 of file StaticData.h.

Referenced by GetSourceStartPosMattersForRecombination().

Definition at line 210 of file StaticData.h.

Referenced by GetStartTranslationId(), and LoadData().

Definition at line 209 of file StaticData.h.

Referenced by LoadData(), and ThreadCount().

bool Moses::StaticData::m_timeout [protected]

Definition at line 174 of file StaticData.h.

Referenced by LoadData(), and UseTimeout().

use timeout

Definition at line 175 of file StaticData.h.

Referenced by GetTimeoutThreshold(), and LoadData().

Definition at line 95 of file StaticData.h.

Referenced by GetTranslationOptionThreshold(), and LoadData().

std::map<std::string, TranslationSystem> Moses::StaticData::m_translationSystems [protected]

Definition at line 93 of file StaticData.h.

Referenced by GetTranslationSystem(), and LoadData().

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().

persistent translation option cache

Definition at line 179 of file StaticData.h.

Referenced by AddTransOptListToCache(), LoadData(), and ReduceTransOptCache().

Definition at line 206 of file StaticData.h.

Referenced by GetUnknownLHS(), and LoadNonTerminals().

Definition at line 140 of file StaticData.h.

Referenced by LoadData(), and ~StaticData().

... in extended format

Definition at line 194 of file StaticData.h.

Referenced by GetUnprunedSearchGraph(), and LoadData().

Definition at line 146 of file StaticData.h.

Referenced by LoadData(), and UseAlignmentInfo().

use MBR decoder

Definition at line 161 of file StaticData.h.

Referenced by IsNBestEnabled(), LoadData(), and UseConsensusDecoding().

theta(s) for lattice mbr calculation

Definition at line 166 of file StaticData.h.

Referenced by LoadData(), and UseLatticeHypSetForLatticeMBR().

use MBR decoder

Definition at line 160 of file StaticData.h.

Referenced by IsNBestEnabled(), LoadData(), SetUseLatticeMBR(), and UseLatticeMBR().

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().

Definition at line 207 of file StaticData.h.

Referenced by GetWordAlignmentSort(), and LoadData().

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().

Definition at line 95 of file StaticData.h.

Definition at line 138 of file StaticData.h.

Referenced by LoadData(), and ~StaticData().

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().

max number of factors on both source and target sides

Definition at line 156 of file StaticData.h.

Referenced by GetXmlInputType(), and LoadData().


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

Generated on Wed Feb 8 22:04:09 2012 for Moses by  doxygen 1.5.9