MosesTraining::PropertiesConsolidator Class Reference

#include <PropertiesConsolidator.h>

List of all members.

Public Member Functions

 PropertiesConsolidator ()
void ActivateSourceLabelsProcessing (const std::string &sourceLabelSetFile)
void ActivatePartsOfSpeechProcessing (const std::string &partsOfSpeechFile)
void ActivateTargetSyntacticPreferencesProcessing (const std::string &targetSyntacticPreferencesLabelSetFile)
bool GetPOSPropertyValueFromPropertiesString (const std::string &propertiesString, std::vector< std::string > &out) const
void ProcessPropertiesString (const std::string &propertiesString, Moses::OutputFileStream &out) const

Protected Member Functions

void ProcessSourceLabelsPropertyValue (const std::string &value, Moses::OutputFileStream &out) const
void ProcessPOSPropertyValue (const std::string &value, Moses::OutputFileStream &out) const
void ProcessTargetSyntacticPreferencesPropertyValue (const std::string &value, Moses::OutputFileStream &out) const

Protected Attributes

bool m_sourceLabelsFlag
std::map< std::string, size_t > m_sourceLabels
bool m_partsOfSpeechFlag
std::map< std::string, size_t > m_partsOfSpeechVocabulary
bool m_targetSyntacticPreferencesFlag
std::map< std::string, size_t > m_targetSyntacticPreferencesLabels


Detailed Description

Definition at line 33 of file PropertiesConsolidator.h.


Constructor & Destructor Documentation

MosesTraining::PropertiesConsolidator::PropertiesConsolidator (  )  [inline]

Definition at line 37 of file PropertiesConsolidator.h.


Member Function Documentation

void MosesTraining::PropertiesConsolidator::ActivatePartsOfSpeechProcessing ( const std::string &  partsOfSpeechFile  ) 

Definition at line 60 of file PropertiesConsolidator.cpp.

References Moses::InputFileStream::Close(), index, m_partsOfSpeechFlag, m_partsOfSpeechVocabulary, UTIL_THROW2, and UTIL_THROW_IF2.

Referenced by processFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTraining::PropertiesConsolidator::ActivateSourceLabelsProcessing ( const std::string &  sourceLabelSetFile  ) 

Definition at line 34 of file PropertiesConsolidator.cpp.

References Moses::InputFileStream::Close(), index, m_sourceLabels, m_sourceLabelsFlag, UTIL_THROW2, and UTIL_THROW_IF2.

Referenced by processFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTraining::PropertiesConsolidator::ActivateTargetSyntacticPreferencesProcessing ( const std::string &  targetSyntacticPreferencesLabelSetFile  ) 

Definition at line 86 of file PropertiesConsolidator.cpp.

References Moses::InputFileStream::Close(), index, m_targetSyntacticPreferencesFlag, m_targetSyntacticPreferencesLabels, UTIL_THROW2, and UTIL_THROW_IF2.

Referenced by processFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

bool MosesTraining::PropertiesConsolidator::GetPOSPropertyValueFromPropertiesString ( const std::string &  propertiesString,
std::vector< std::string > &  out 
) const

Definition at line 254 of file PropertiesConsolidator.cpp.

References EOF, Moses::TokenizeFirstOnly(), and Moses::TokenizeMultiCharSeparator().

Referenced by processFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTraining::PropertiesConsolidator::ProcessPOSPropertyValue ( const std::string &  value,
Moses::OutputFileStream out 
) const [protected]

Definition at line 241 of file PropertiesConsolidator.cpp.

References EOF, m_partsOfSpeechVocabulary, and UTIL_THROW_IF2.

void MosesTraining::PropertiesConsolidator::ProcessPropertiesString ( const std::string &  propertiesString,
Moses::OutputFileStream out 
) const

Definition at line 112 of file PropertiesConsolidator.cpp.

References m_sourceLabelsFlag, m_targetSyntacticPreferencesFlag, ProcessSourceLabelsPropertyValue(), ProcessTargetSyntacticPreferencesPropertyValue(), Moses::TokenizeFirstOnly(), and Moses::TokenizeMultiCharSeparator().

Referenced by processFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTraining::PropertiesConsolidator::ProcessSourceLabelsPropertyValue ( const std::string &  value,
Moses::OutputFileStream out 
) const [protected]

Definition at line 180 of file PropertiesConsolidator.cpp.

References EOF, m_sourceLabels, totalCount, UTIL_THROW2, and UTIL_THROW_IF2.

Referenced by ProcessPropertiesString().

Here is the caller graph for this function:

void MosesTraining::PropertiesConsolidator::ProcessTargetSyntacticPreferencesPropertyValue ( const std::string &  value,
Moses::OutputFileStream out 
) const [protected]

Definition at line 288 of file PropertiesConsolidator.cpp.

References EOF, m_targetSyntacticPreferencesLabels, totalCount, UTIL_THROW2, and UTIL_THROW_IF2.

Referenced by ProcessPropertiesString().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 59 of file PropertiesConsolidator.h.

Referenced by ActivatePartsOfSpeechProcessing().

std::map<std::string,size_t> MosesTraining::PropertiesConsolidator::m_partsOfSpeechVocabulary [protected]

std::map<std::string,size_t> MosesTraining::PropertiesConsolidator::m_sourceLabels [protected]


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

Generated on Thu Jul 6 00:34:07 2017 for Moses by  doxygen 1.5.9