#include <IOWrapper.h>

Public Member Functions | |
| IOWrapper (const std::vector< Moses::FactorType > &inputFactorOrder, const std::vector< Moses::FactorType > &outputFactorOrder, const Moses::FactorMask &inputFactorUsed, size_t nBestSize, const std::string &nBestFilePath) | |
| IOWrapper (const std::vector< Moses::FactorType > &inputFactorOrder, const std::vector< Moses::FactorType > &outputFactorOrder, const Moses::FactorMask &inputFactorUsed, size_t nBestSize, const std::string &nBestFilePath, const std::string &infilePath) | |
| ~IOWrapper () | |
| Moses::InputType * | GetInput (Moses::InputType *inputType) |
| void | OutputBestHypo (const Moses::Hypothesis *hypo, long translationId, bool reportSegmentation, bool reportAllFactors) |
| void | OutputLatticeMBRNBestList (const std::vector< LatticeMBRSolution > &solutions, long translationId) |
| void | Backtrack (const Moses::Hypothesis *hypo) |
| void | ResetTranslationId () |
| std::ofstream * | GetAlignmentOutputStream () |
| std::ostream & | GetOutputWordGraphStream () |
| std::ostream & | GetOutputSearchGraphStream () |
| std::ostream & | GetDetailedTranslationReportingStream () |
Protected Member Functions | |
| void | Initialization (const std::vector< Moses::FactorType > &inputFactorOrder, const std::vector< Moses::FactorType > &outputFactorOrder, const Moses::FactorMask &inputFactorUsed, size_t nBestSize, const std::string &nBestFilePath) |
Protected Attributes | |
| long | m_translationId |
| const std::vector < Moses::FactorType > & | m_inputFactorOrder |
| const std::vector < Moses::FactorType > & | m_outputFactorOrder |
| const Moses::FactorMask & | m_inputFactorUsed |
| std::string | m_inputFilePath |
| Moses::InputFileStream * | m_inputFile |
| std::istream * | m_inputStream |
| std::ostream * | m_nBestStream |
| std::ostream * | m_outputWordGraphStream |
| std::ostream * | m_outputSearchGraphStream |
| std::ostream * | m_detailedTranslationReportingStream |
| std::ofstream * | m_alignmentOutputStream |
| bool | m_surpressSingleBestOutput |
Definition at line 55 of file IOWrapper.h.
| IOWrapper::IOWrapper | ( | const std::vector< Moses::FactorType > & | inputFactorOrder, | |
| const std::vector< Moses::FactorType > & | outputFactorOrder, | |||
| const Moses::FactorMask & | inputFactorUsed, | |||
| size_t | nBestSize, | |||
| const std::string & | nBestFilePath | |||
| ) |
| IOWrapper::IOWrapper | ( | const std::vector< Moses::FactorType > & | inputFactorOrder, | |
| const std::vector< Moses::FactorType > & | outputFactorOrder, | |||
| const Moses::FactorMask & | inputFactorUsed, | |||
| size_t | nBestSize, | |||
| const std::string & | nBestFilePath, | |||
| const std::string & | infilePath | |||
| ) |
| IOWrapper::~IOWrapper | ( | ) |
Definition at line 96 of file IOWrapper.cpp.
References m_alignmentOutputStream, m_detailedTranslationReportingStream, m_inputFile, m_nBestStream, m_outputSearchGraphStream, m_outputWordGraphStream, m_surpressSingleBestOutput, and NULL.
| void IOWrapper::Backtrack | ( | const Moses::Hypothesis * | hypo | ) |
Definition at line 300 of file IOWrapper.cpp.
References Moses::Hypothesis::GetId(), Moses::Hypothesis::GetPrevHypo(), NULL, and VERBOSE.
Referenced by OutputBestHypo().


| std::ofstream* IOWrapper::GetAlignmentOutputStream | ( | ) | [inline] |
Definition at line 103 of file IOWrapper.h.
References m_alignmentOutputStream.
Referenced by main().

| std::ostream& IOWrapper::GetDetailedTranslationReportingStream | ( | ) | [inline] |
Definition at line 114 of file IOWrapper.h.
References m_detailedTranslationReportingStream.
Referenced by main().

| InputType * IOWrapper::GetInput | ( | Moses::InputType * | inputType | ) |
Definition at line 172 of file IOWrapper.cpp.
References Moses::InputType::GetTranslationId(), m_inputFactorOrder, m_inputStream, m_translationId, NULL, Moses::InputType::Read(), and Moses::InputType::SetTranslationId().
Referenced by ReadInput().


| std::ostream& IOWrapper::GetOutputSearchGraphStream | ( | ) | [inline] |
Definition at line 110 of file IOWrapper.h.
References m_outputSearchGraphStream.
Referenced by main().

| std::ostream& IOWrapper::GetOutputWordGraphStream | ( | ) | [inline] |
Definition at line 107 of file IOWrapper.h.
References m_outputWordGraphStream.
Referenced by main().

| void IOWrapper::Initialization | ( | const std::vector< Moses::FactorType > & | inputFactorOrder, | |
| const std::vector< Moses::FactorType > & | outputFactorOrder, | |||
| const Moses::FactorMask & | inputFactorUsed, | |||
| size_t | nBestSize, | |||
| const std::string & | nBestFilePath | |||
| ) | [protected] |
| void IOWrapper::OutputBestHypo | ( | const Moses::Hypothesis * | hypo, | |
| long | translationId, | |||
| bool | reportSegmentation, | |||
| bool | reportAllFactors | |||
| ) |
Definition at line 338 of file IOWrapper.cpp.
References Backtrack(), m_outputFactorOrder, m_surpressSingleBestOutput, NULL, OutputInput(), OutputSurface(), and VERBOSE.

| void IOWrapper::OutputLatticeMBRNBestList | ( | const std::vector< LatticeMBRSolution > & | solutions, | |
| long | translationId | |||
| ) |
| void IOWrapper::ResetTranslationId | ( | ) | [inline] |
Definition at line 99 of file IOWrapper.h.
References m_translationId.
Referenced by GetIODevice().

std::ofstream* IOWrapper::m_alignmentOutputStream [protected] |
Definition at line 69 of file IOWrapper.h.
Referenced by GetAlignmentOutputStream(), and ~IOWrapper().
std::ostream* IOWrapper::m_detailedTranslationReportingStream [protected] |
Definition at line 68 of file IOWrapper.h.
Referenced by GetDetailedTranslationReportingStream(), and ~IOWrapper().
const std::vector<Moses::FactorType>& IOWrapper::m_inputFactorOrder [protected] |
const Moses::FactorMask& IOWrapper::m_inputFactorUsed [protected] |
Definition at line 62 of file IOWrapper.h.
Moses::InputFileStream* IOWrapper::m_inputFile [protected] |
std::string IOWrapper::m_inputFilePath [protected] |
Definition at line 63 of file IOWrapper.h.
std::istream* IOWrapper::m_inputStream [protected] |
std::ostream* IOWrapper::m_nBestStream [protected] |
const std::vector<Moses::FactorType>& IOWrapper::m_outputFactorOrder [protected] |
std::ostream * IOWrapper::m_outputSearchGraphStream [protected] |
Definition at line 67 of file IOWrapper.h.
Referenced by GetOutputSearchGraphStream(), and ~IOWrapper().
std::ostream * IOWrapper::m_outputWordGraphStream [protected] |
Definition at line 67 of file IOWrapper.h.
Referenced by GetOutputWordGraphStream(), and ~IOWrapper().
bool IOWrapper::m_surpressSingleBestOutput [protected] |
long IOWrapper::m_translationId [protected] |
1.5.9