Moses::StoreTarget Class Reference

#include <StoreTarget.h>

Collaboration diagram for Moses::StoreTarget:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 StoreTarget (const std::string &basepath)
virtual ~StoreTarget ()
uint64_t Save ()
void SaveAlignment ()
void Append (const line_text &line, bool log_prob, bool scfg)

Protected Types

typedef boost::unordered_map
< std::vector< size_t >
, uint32_t > 
Alignments

Protected Member Functions

uint32_t GetAlignId (const std::vector< size_t > &align)
void Save (const target_text &rule)
void AppendLexRO (std::string &prop, std::vector< float > &retvector, bool log_prob) const

Protected Attributes

std::string m_basePath
std::fstream m_fileTargetColl
StoreVocab< uint32_t > m_vocab
Alignments m_aligns
std::vector< target_text * > m_coll


Detailed Description

Definition at line 22 of file StoreTarget.h.


Member Typedef Documentation

typedef boost::unordered_map<std::vector<size_t>, uint32_t> Moses::StoreTarget::Alignments [protected]

Definition at line 37 of file StoreTarget.h.


Constructor & Destructor Documentation

Moses::StoreTarget::StoreTarget ( const std::string &  basepath  ) 

Definition at line 19 of file StoreTarget.cpp.

References m_fileTargetColl.

Moses::StoreTarget::~StoreTarget (  )  [virtual]

Definition at line 32 of file StoreTarget.cpp.

References m_coll, m_fileTargetColl, m_vocab, and Moses::StoreVocab< VOCABID >::Save().

Here is the call graph for this function:


Member Function Documentation

void Moses::StoreTarget::Append ( const line_text line,
bool  log_prob,
bool  scfg 
)

void Moses::StoreTarget::AppendLexRO ( std::string &  prop,
std::vector< float > &  retvector,
bool  log_prob 
) const [protected]

Definition at line 233 of file StoreTarget.cpp.

References Moses::FloorScore().

Referenced by Append().

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t Moses::StoreTarget::GetAlignId ( const std::vector< size_t > &  align  )  [protected]

Definition at line 220 of file StoreTarget.cpp.

References m_aligns.

Referenced by Save().

Here is the caller graph for this function:

void Moses::StoreTarget::Save ( const target_text rule  )  [protected]

uint64_t Moses::StoreTarget::Save (  ) 

Definition at line 41 of file StoreTarget.cpp.

References m_coll, m_fileTargetColl, and Moses::RemoveAllInColl().

Here is the call graph for this function:

void Moses::StoreTarget::SaveAlignment (  ) 

Definition at line 89 of file StoreTarget.cpp.

References m_aligns, and m_basePath.


Member Data Documentation

Definition at line 38 of file StoreTarget.h.

Referenced by GetAlignId(), and SaveAlignment().

std::string Moses::StoreTarget::m_basePath [protected]

Definition at line 33 of file StoreTarget.h.

Referenced by SaveAlignment().

std::vector<target_text*> Moses::StoreTarget::m_coll [protected]

Definition at line 40 of file StoreTarget.h.

Referenced by Append(), Save(), and ~StoreTarget().

std::fstream Moses::StoreTarget::m_fileTargetColl [protected]

Definition at line 34 of file StoreTarget.h.

Referenced by Save(), StoreTarget(), and ~StoreTarget().

StoreVocab<uint32_t> Moses::StoreTarget::m_vocab [protected]

Definition at line 35 of file StoreTarget.h.

Referenced by Append(), and ~StoreTarget().


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

Generated on Thu Feb 16 00:33:16 2017 for Moses by  doxygen 1.5.9