Moses::PDTAimp Class Reference

#include <PDTAimp.h>

Collaboration diagram for Moses::PDTAimp:

Collaboration graph
[legend]

List of all members.

Classes

struct  State
struct  TScores

Public Types

typedef std::vector
< TargetPhraseCollectionWithSourcePhrase::shared_ptr
vTPC
typedef std::map< Phrase,
TargetPhraseCollectionWithSourcePhrase::shared_ptr
MapSrc2Tgt
typedef
PhraseDictionaryTree::PrefixPtr 
PPtr
typedef unsigned short Position
typedef std::pair< Position,
Position
Range

Public Member Functions

 ~PDTAimp ()
void Factors2String (Word const &w, std::string &s) const
void CleanUp ()
TargetPhraseCollectionWithSourcePhrase::shared_ptr GetTargetPhraseCollection (Phrase const &src) const
void Create (const std::vector< FactorType > &input, const std::vector< FactorType > &output, const std::string &filePath, const std::vector< float > &weight)
void CreateTargetPhrase (TargetPhrase &targetPhrase, StringTgtCand::Tokens const &factorStrings, std::string const &factorDelimiter, Scores const &transVector, Scores const &inputVector, const std::string *alignmentString, Phrase const *srcPtr=0) const
TargetPhraseCollectionWithSourcePhrase::shared_ptr PruneTargetCandidates (const std::vector< TargetPhrase > &tCands, std::vector< std::pair< float, size_t > > &costs, const std::vector< Phrase > &sourcePhrases) const
void CacheSource (ConfusionNet const &src)
size_t GetNumInputScores () const

Public Attributes

std::vector< FactorTypem_input
std::vector< FactorTypem_output
PhraseDictionaryTreem_dict
const InputFeaturem_inputFeature
vTPC m_tgtColls
MapSrc2Tgt m_cache
PhraseDictionaryTreeAdaptorm_obj
int useCache
std::vector< vTPCm_rangeCache
unsigned m_numInputScores
UniqueObjectManager< PhraseuniqSrcPhr
size_t totalE
size_t distinctE
std::vector< size_t > path1Best
std::vector< size_t > pathExplored
std::vector< double > pathCN

Protected Member Functions

 PDTAimp (PhraseDictionaryTreeAdaptor *p)

Friends

class PhraseDictionaryTreeAdaptor


Detailed Description

implementation of the binary phrase table for the phrase-based decoder. Used by PhraseDictionaryTreeAdaptor

Definition at line 35 of file PDTAimp.h.


Member Typedef Documentation

Definition at line 50 of file PDTAimp.h.

typedef unsigned short Moses::PDTAimp::Position

Definition at line 82 of file PDTAimp.h.

Definition at line 81 of file PDTAimp.h.

Definition at line 83 of file PDTAimp.h.

Definition at line 47 of file PDTAimp.h.


Constructor & Destructor Documentation

Moses::PDTAimp::PDTAimp ( PhraseDictionaryTreeAdaptor p  )  [protected]

Moses::PDTAimp::~PDTAimp (  ) 

Definition at line 24 of file PDTAimp.cpp.

References CleanUp(), distinctE, Moses::Exp(), Moses::StaticData::Instance(), m_dict, path1Best, pathCN, pathExplored, totalE, and TRACE_ERR.

Here is the call graph for this function:


Member Function Documentation

void Moses::PDTAimp::CacheSource ( ConfusionNet const &  src  ) 

void Moses::PDTAimp::CleanUp (  ) 

void Moses::PDTAimp::Create ( const std::vector< FactorType > &  input,
const std::vector< FactorType > &  output,
const std::string &  filePath,
const std::vector< float > &  weight 
)

void Moses::PDTAimp::CreateTargetPhrase ( TargetPhrase targetPhrase,
StringTgtCand::Tokens const &  factorStrings,
std::string const &  factorDelimiter,
Scores const &  transVector,
Scores const &  inputVector,
const std::string *  alignmentString,
Phrase const *  srcPtr = 0 
) const

void Moses::PDTAimp::Factors2String ( Word const &  w,
std::string &  s 
) const [inline]

Definition at line 66 of file PDTAimp.h.

References Moses::Word::GetString(), and m_input.

Referenced by CacheSource(), and GetTargetPhraseCollection().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t Moses::PDTAimp::GetNumInputScores (  )  const [inline]

Definition at line 142 of file PDTAimp.h.

References m_numInputScores.

TargetPhraseCollectionWithSourcePhrase::shared_ptr Moses::PDTAimp::GetTargetPhraseCollection ( Phrase const &  src  )  const

TargetPhraseCollectionWithSourcePhrase::shared_ptr Moses::PDTAimp::PruneTargetCandidates ( const std::vector< TargetPhrase > &  tCands,
std::vector< std::pair< float, size_t > > &  costs,
const std::vector< Phrase > &  sourcePhrases 
) const

Definition at line 440 of file PDTAimp.cpp.

References NTH_ELEMENT3, and UTIL_THROW_IF2.

Referenced by CacheSource(), and GetTargetPhraseCollection().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class PhraseDictionaryTreeAdaptor [friend]

Definition at line 38 of file PDTAimp.h.


Member Data Documentation

Definition at line 60 of file PDTAimp.h.

Referenced by CacheSource(), and ~PDTAimp().

Definition at line 51 of file PDTAimp.h.

Referenced by CleanUp(), and GetTargetPhraseCollection().

Definition at line 45 of file PDTAimp.h.

Referenced by CacheSource(), CleanUp(), Create(), GetTargetPhraseCollection(), and ~PDTAimp().

Definition at line 44 of file PDTAimp.h.

Referenced by Create(), and Factors2String().

Definition at line 46 of file PDTAimp.h.

Referenced by CacheSource(), CreateTargetPhrase(), and PDTAimp().

Definition at line 56 of file PDTAimp.h.

Referenced by CacheSource(), CreateTargetPhrase(), GetNumInputScores(), and PDTAimp().

Definition at line 52 of file PDTAimp.h.

Referenced by CacheSource(), CreateTargetPhrase(), GetTargetPhraseCollection(), and PDTAimp().

Definition at line 44 of file PDTAimp.h.

Referenced by Create(), and CreateTargetPhrase().

Definition at line 48 of file PDTAimp.h.

Referenced by CacheSource(), CleanUp(), and GetTargetPhraseCollection().

std::vector<size_t> Moses::PDTAimp::path1Best

Definition at line 61 of file PDTAimp.h.

Referenced by CacheSource(), and ~PDTAimp().

std::vector<double> Moses::PDTAimp::pathCN

Definition at line 62 of file PDTAimp.h.

Referenced by CacheSource(), and ~PDTAimp().

std::vector<size_t> Moses::PDTAimp::pathExplored

Definition at line 61 of file PDTAimp.h.

Referenced by CacheSource(), and ~PDTAimp().

Definition at line 60 of file PDTAimp.h.

Referenced by CacheSource(), and ~PDTAimp().

Definition at line 58 of file PDTAimp.h.

Referenced by CacheSource(), and CleanUp().


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

Generated on Thu Jul 6 00:33:27 2017 for Moses by  doxygen 1.5.9