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

#include <iostream>
#include <stack>
#include "TypeDef.h"
#include "Util.h"
#include "IOWrapper.h"
#include "Hypothesis.h"
#include "WordsRange.h"
#include "TrellisPathList.h"
#include "StaticData.h"
#include "DummyScoreProducers.h"
#include "InputFileStream.h"

Go to the source code of this file.

Functions

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


Function Documentation

IOWrapper* GetIODevice ( const 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 OutputAlignment ( OutputCollector collector,
size_t  lineNo,
const vector< const Hypothesis * > &  edges 
)

Definition at line 238 of file IOWrapper.cpp.

References OutputAlignment(), and Moses::OutputCollector::Write().

Here is the call graph for this function:

void OutputAlignment ( ostream &  out,
const vector< const Hypothesis * > &  edges 
)

void OutputAlignment ( ostream &  out,
const AlignmentInfo ai,
size_t  sourceOffset,
size_t  targetOffset 
)

Definition at line 209 of file IOWrapper.cpp.

References Moses::AlignmentInfo::GetSortedAlignments().

Referenced by OutputAlignment(), OutputNBest(), and TranslationTask::Run().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 309 of file IOWrapper.cpp.

void OutputBestHypo ( const Moses::TrellisPath path,
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 OutputInput ( std::vector< const Phrase * > &  map,
const Hypothesis hypo 
)

Definition at line 321 of file IOWrapper.cpp.

References Moses::Hypothesis::GetCurrSourceWordsRange(), Moses::Hypothesis::GetPrevHypo(), Moses::Hypothesis::GetSourcePhrase(), and Moses::WordsRange::GetStartPos().

Referenced by IOWrapper::OutputBestHypo(), OutputInput(), OutputNBest(), and TranslationTask::Run().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 498 of file IOWrapper.cpp.

Referenced by TranslationTask::Run().

Here is the caller graph for this function:

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

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

void OutputSurface ( std::ostream &  out,
const Phrase phrase,
const std::vector< FactorType > &  outputFactorOrder,
bool  reportAllFactors 
)

Definition at line 189 of file IOWrapper.cpp.

References CHECK, Moses::Phrase::GetFactor(), and Moses::Phrase::GetSize().

Referenced by IOWrapper::OutputBestHypo(), OutputBestHypo(), OutputNBest(), OutputSurface(), and TranslationTask::Run().

Here is the call graph for this function:

Here is the caller graph for this function:

bool ReadInput ( IOWrapper ioWrapper,
InputTypeEnum  inputType,
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 Wed Feb 8 06:04:10 2012 for Moses by  doxygen 1.5.9