#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 66 of file IOWrapper.h.
| MosesCmd::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 | |||
| ) |
| MosesCmd::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 | |||
| ) |
| MosesCmd::IOWrapper::~IOWrapper | ( | ) |
Definition at line 101 of file IOWrapper.cpp.
References m_alignmentOutputStream, m_detailedTranslationReportingStream, m_inputFile, m_nBestStream, m_outputSearchGraphStream, m_outputWordGraphStream, m_surpressSingleBestOutput, and NULL.
| void MosesCmd::IOWrapper::Backtrack | ( | const Moses::Hypothesis * | hypo | ) |
Definition at line 317 of file IOWrapper.cpp.
References Moses::Hypothesis::GetId(), Moses::Hypothesis::GetPrevHypo(), NULL, and VERBOSE.
Referenced by OutputBestHypo().


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

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

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


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

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

| void MosesCmd::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 MosesCmd::IOWrapper::OutputBestHypo | ( | const Moses::Hypothesis * | hypo, | |
| long | translationId, | |||
| bool | reportSegmentation, | |||
| bool | reportAllFactors | |||
| ) |
Definition at line 356 of file IOWrapper.cpp.
References Backtrack(), m_outputFactorOrder, m_surpressSingleBestOutput, NULL, MosesCmd::OutputBestSurface(), MosesCmd::OutputInput(), and VERBOSE.

| void MosesCmd::IOWrapper::OutputLatticeMBRNBestList | ( | const std::vector< LatticeMBRSolution > & | solutions, | |
| long | translationId | |||
| ) |
| void MosesCmd::IOWrapper::ResetTranslationId | ( | ) | [inline] |
std::ofstream* MosesCmd::IOWrapper::m_alignmentOutputStream [protected] |
Definition at line 80 of file IOWrapper.h.
Referenced by GetAlignmentOutputStream(), and ~IOWrapper().
std::ostream* MosesCmd::IOWrapper::m_detailedTranslationReportingStream [protected] |
Definition at line 79 of file IOWrapper.h.
Referenced by GetDetailedTranslationReportingStream(), and ~IOWrapper().
const std::vector<Moses::FactorType>& MosesCmd::IOWrapper::m_inputFactorOrder [protected] |
const Moses::FactorMask& MosesCmd::IOWrapper::m_inputFactorUsed [protected] |
Definition at line 73 of file IOWrapper.h.
Moses::InputFileStream* MosesCmd::IOWrapper::m_inputFile [protected] |
std::string MosesCmd::IOWrapper::m_inputFilePath [protected] |
Definition at line 74 of file IOWrapper.h.
std::istream* MosesCmd::IOWrapper::m_inputStream [protected] |
std::ostream* MosesCmd::IOWrapper::m_nBestStream [protected] |
const std::vector<Moses::FactorType>& MosesCmd::IOWrapper::m_outputFactorOrder [protected] |
std::ostream * MosesCmd::IOWrapper::m_outputSearchGraphStream [protected] |
Definition at line 78 of file IOWrapper.h.
Referenced by GetOutputSearchGraphStream(), and ~IOWrapper().
std::ostream * MosesCmd::IOWrapper::m_outputWordGraphStream [protected] |
Definition at line 78 of file IOWrapper.h.
Referenced by GetOutputWordGraphStream(), and ~IOWrapper().
bool MosesCmd::IOWrapper::m_surpressSingleBestOutput [protected] |
long MosesCmd::IOWrapper::m_translationId [protected] |
1.5.9