MosesCmd::IOWrapper Class Reference

#include <IOWrapper.h>

Collaboration diagram for MosesCmd::IOWrapper:

Collaboration graph
[legend]

List of all members.

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::InputTypeGetInput (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::FactorMaskm_inputFactorUsed
std::string m_inputFilePath
Moses::InputFileStreamm_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


Detailed Description

Helper class that holds misc variables to write data out to command line.

Definition at line 66 of file IOWrapper.h.


Constructor & Destructor Documentation

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


Member Function Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:

std::ofstream* MosesCmd::IOWrapper::GetAlignmentOutputStream (  )  [inline]

Definition at line 115 of file IOWrapper.h.

References m_alignmentOutputStream.

Referenced by main().

Here is the caller graph for this function:

std::ostream& MosesCmd::IOWrapper::GetDetailedTranslationReportingStream (  )  [inline]

Definition at line 126 of file IOWrapper.h.

References m_detailedTranslationReportingStream.

Referenced by main().

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

std::ostream& MosesCmd::IOWrapper::GetOutputSearchGraphStream (  )  [inline]

Definition at line 122 of file IOWrapper.h.

References m_outputSearchGraphStream.

Referenced by main().

Here is the caller graph for this function:

std::ostream& MosesCmd::IOWrapper::GetOutputWordGraphStream (  )  [inline]

Definition at line 119 of file IOWrapper.h.

References m_outputWordGraphStream.

Referenced by main().

Here is the caller graph for this function:

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.

Here is the call graph for this function:

void MosesCmd::IOWrapper::OutputLatticeMBRNBestList ( const std::vector< LatticeMBRSolution > &  solutions,
long  translationId 
)

void MosesCmd::IOWrapper::ResetTranslationId (  )  [inline]

Definition at line 111 of file IOWrapper.h.

References m_translationId.


Member Data Documentation

Definition at line 80 of file IOWrapper.h.

Referenced by GetAlignmentOutputStream(), and ~IOWrapper().

Definition at line 79 of file IOWrapper.h.

Referenced by GetDetailedTranslationReportingStream(), and ~IOWrapper().

Definition at line 71 of file IOWrapper.h.

Referenced by GetInput().

Definition at line 73 of file IOWrapper.h.

Definition at line 75 of file IOWrapper.h.

Referenced by ~IOWrapper().

std::string MosesCmd::IOWrapper::m_inputFilePath [protected]

Definition at line 74 of file IOWrapper.h.

std::istream* MosesCmd::IOWrapper::m_inputStream [protected]

Definition at line 76 of file IOWrapper.h.

Referenced by GetInput().

std::ostream* MosesCmd::IOWrapper::m_nBestStream [protected]

Definition at line 78 of file IOWrapper.h.

Referenced by ~IOWrapper().

Definition at line 72 of file IOWrapper.h.

Referenced by OutputBestHypo().

Definition at line 78 of file IOWrapper.h.

Referenced by GetOutputSearchGraphStream(), and ~IOWrapper().

Definition at line 78 of file IOWrapper.h.

Referenced by GetOutputWordGraphStream(), and ~IOWrapper().

Definition at line 81 of file IOWrapper.h.

Referenced by OutputBestHypo(), and ~IOWrapper().

Definition at line 69 of file IOWrapper.h.

Referenced by GetInput(), and ResetTranslationId().


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

Generated on Thu Jun 4 00:32:56 2015 for Moses by  doxygen 1.5.9