mosesdecoder/moses-cmd/src/IOWrapper.h File Reference

#include <fstream>
#include <ostream>
#include <vector>
#include "util/check.hh"
#include "TypeDef.h"
#include "Sentence.h"
#include "FactorTypeSet.h"
#include "FactorCollection.h"
#include "Hypothesis.h"
#include "OutputCollector.h"
#include "TrellisPathList.h"
#include "InputFileStream.h"
#include "InputType.h"
#include "WordLattice.h"
#include "LatticeMBR.h"

Go to the source code of this file.

Classes

class  IOWrapper

Functions

IOWrapperGetIODevice (const Moses::StaticData &staticData)
bool ReadInput (IOWrapper &ioWrapper, Moses::InputTypeEnum inputType, Moses::InputType *&source)
void OutputSurface (std::ostream &out, const Moses::Hypothesis *hypo, const std::vector< Moses::FactorType > &outputFactorOrder, bool reportSegmentation, bool reportAllFactors)
void OutputNBest (std::ostream &out, const Moses::TrellisPathList &nBestList, const std::vector< Moses::FactorType > &, const TranslationSystem *system, long translationId)
void OutputLatticeMBRNBest (std::ostream &out, const std::vector< LatticeMBRSolution > &solutions, long translationId)
void OutputBestHypo (const std::vector< Moses::Word > &mbrBestHypo, long, bool reportSegmentation, bool reportAllFactors, std::ostream &out)
void OutputBestHypo (const Moses::TrellisPath &path, long, bool reportSegmentation, bool reportAllFactors, std::ostream &out)
void OutputInput (std::ostream &os, const Hypothesis *hypo)
void OutputAlignment (OutputCollector *collector, size_t lineNo, const Hypothesis *hypo)
void OutputAlignment (OutputCollector *collector, size_t lineNo, const TrellisPath &path)


Function Documentation

IOWrapper* GetIODevice ( const Moses::StaticData staticData  ) 

void OutputAlignment ( OutputCollector collector,
size_t  lineNo,
const TrellisPath path 
)

Definition at line 260 of file IOWrapper.cpp.

References Moses::TrellisPath::GetEdges(), and OutputAlignment().

Here is the call graph for this function:

void OutputAlignment ( OutputCollector collector,
size_t  lineNo,
const Hypothesis hypo 
)

Definition at line 246 of file IOWrapper.cpp.

References Moses::Hypothesis::GetPrevHypo(), and OutputAlignment().

Here is the call graph for this function:

void OutputBestHypo ( const Moses::TrellisPath path,
long  ,
bool  reportSegmentation,
bool  reportAllFactors,
std::ostream &  out 
)

void OutputBestHypo ( const std::vector< Moses::Word > &  mbrBestHypo,
long  ,
bool  reportSegmentation,
bool  reportAllFactors,
std::ostream &  out 
)

void OutputInput ( std::ostream &  os,
const Hypothesis hypo 
)

Definition at line 329 of file IOWrapper.cpp.

References Moses::Hypothesis::GetInput(), Moses::InputType::GetSize(), and OutputInput().

Here is the call graph for this function:

void OutputLatticeMBRNBest ( std::ostream &  out,
const std::vector< LatticeMBRSolution > &  solutions,
long  translationId 
)

void OutputNBest ( std::ostream &  out,
const Moses::TrellisPathList nBestList,
const std::vector< Moses::FactorType > &  ,
const TranslationSystem system,
long  translationId 
)

void OutputSurface ( std::ostream &  out,
const Moses::Hypothesis hypo,
const std::vector< Moses::FactorType > &  outputFactorOrder,
bool  reportSegmentation,
bool  reportAllFactors 
)

bool ReadInput ( IOWrapper ioWrapper,
Moses::InputTypeEnum  inputType,
Moses::InputType *&  source 
)

Definition at line 528 of file IOWrapper.cpp.

References Moses::ConfusionNetworkInput, IOWrapper::GetInput(), Moses::SentenceInput, TRACE_ERR, and Moses::WordLatticeInput.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Tue Feb 7 19:04:09 2012 for Moses by  doxygen 1.5.9