#include <PropertiesConsolidator.h>
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 |
Definition at line 33 of file PropertiesConsolidator.h.
MosesTraining::PropertiesConsolidator::PropertiesConsolidator | ( | ) | [inline] |
Definition at line 37 of file PropertiesConsolidator.h.
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().
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().
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().
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().
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().
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().
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().
bool MosesTraining::PropertiesConsolidator::m_partsOfSpeechFlag [protected] |
Definition at line 59 of file PropertiesConsolidator.h.
Referenced by ActivatePartsOfSpeechProcessing().
std::map<std::string,size_t> MosesTraining::PropertiesConsolidator::m_partsOfSpeechVocabulary [protected] |
Definition at line 60 of file PropertiesConsolidator.h.
Referenced by ActivatePartsOfSpeechProcessing(), and ProcessPOSPropertyValue().
std::map<std::string,size_t> MosesTraining::PropertiesConsolidator::m_sourceLabels [protected] |
Definition at line 58 of file PropertiesConsolidator.h.
Referenced by ActivateSourceLabelsProcessing(), and ProcessSourceLabelsPropertyValue().
bool MosesTraining::PropertiesConsolidator::m_sourceLabelsFlag [protected] |
Definition at line 57 of file PropertiesConsolidator.h.
Referenced by ActivateSourceLabelsProcessing(), and ProcessPropertiesString().
Definition at line 61 of file PropertiesConsolidator.h.
Referenced by ActivateTargetSyntacticPreferencesProcessing(), and ProcessPropertiesString().
std::map<std::string,size_t> MosesTraining::PropertiesConsolidator::m_targetSyntacticPreferencesLabels [protected] |
Definition at line 62 of file PropertiesConsolidator.h.
Referenced by ActivateTargetSyntacticPreferencesProcessing(), and ProcessTargetSyntacticPreferencesPropertyValue().