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
< TargetPhraseCollection const * > 
vTPC
typedef std::map< Phrase,
TargetPhraseCollection const * > 
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 ()
TargetPhraseCollection const * 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, const LMList &languageModels, float weightWP)
void CreateTargetPhrase (TargetPhrase &targetPhrase, StringTgtCand::first_type const &factorStrings, StringTgtCand::second_type const &scoreVector, const std::string &alignmentString, Phrase const *srcPtr=0) const
void CreateTargetPhrase (TargetPhrase &targetPhrase, StringTgtCand::first_type const &factorStrings, StringTgtCand::second_type const &scoreVector, Phrase const *srcPtr=0) const
TargetPhraseCollectionPruneTargetCandidates (std::vector< TargetPhrase > const &tCands, std::vector< std::pair< float, size_t > > &costs) const
void CacheSource (ConfusionNet const &src)
size_t GetNumInputScores () const

Public Attributes

std::vector< float > m_weights
LMList const * m_languageModels
float m_weightWP
std::vector< FactorTypem_input
std::vector< FactorTypem_output
PhraseDictionaryTreem_dict
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, unsigned nis)

Friends

class PhraseDictionaryTreeAdaptor


Detailed Description

Definition at line 28 of file PDTAimp.h.


Member Typedef Documentation

Definition at line 47 of file PDTAimp.h.

typedef unsigned short Moses::PDTAimp::Position

Definition at line 218 of file PDTAimp.h.

Definition at line 217 of file PDTAimp.h.

Definition at line 219 of file PDTAimp.h.

typedef std::vector<TargetPhraseCollection const*> Moses::PDTAimp::vTPC

Definition at line 44 of file PDTAimp.h.


Constructor & Destructor Documentation

Moses::PDTAimp::PDTAimp ( PhraseDictionaryTreeAdaptor p,
unsigned  nis 
) [inline, protected]

Definition at line 34 of file PDTAimp.h.

Moses::PDTAimp::~PDTAimp (  )  [inline]

Definition at line 61 of file PDTAimp.h.

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  )  [inline]

void Moses::PDTAimp::CleanUp (  )  [inline]

void Moses::PDTAimp::Create ( const std::vector< FactorType > &  input,
const std::vector< FactorType > &  output,
const std::string &  filePath,
const std::vector< float > &  weight,
const LMList languageModels,
float  weightWP 
) [inline]

void Moses::PDTAimp::CreateTargetPhrase ( TargetPhrase targetPhrase,
StringTgtCand::first_type const &  factorStrings,
StringTgtCand::second_type const &  scoreVector,
Phrase const *  srcPtr = 0 
) const [inline]

void Moses::PDTAimp::CreateTargetPhrase ( TargetPhrase targetPhrase,
StringTgtCand::first_type const &  factorStrings,
StringTgtCand::second_type const &  scoreVector,
const std::string &  alignmentString,
Phrase const *  srcPtr = 0 
) const [inline]

Definition at line 253 of file PDTAimp.h.

References Moses::TargetPhrase::SetAlignmentInfo().

Referenced by CacheSource(), and GetTargetPhraseCollection().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 98 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 508 of file PDTAimp.h.

References m_numInputScores.

Referenced by Moses::PhraseDictionaryTreeAdaptor::GetNumInputScores().

Here is the caller graph for this function:

TargetPhraseCollection const* Moses::PDTAimp::GetTargetPhraseCollection ( Phrase const &  src  )  const [inline]

TargetPhraseCollection* Moses::PDTAimp::PruneTargetCandidates ( std::vector< TargetPhrase > const &  tCands,
std::vector< std::pair< float, size_t > > &  costs 
) const [inline]

Definition at line 284 of file PDTAimp.h.

References Moses::TargetPhraseCollection::Add(), Moses::TargetPhraseCollection::begin(), m_obj, and Moses::PhraseDictionary::m_tableLimit.

Referenced by CacheSource(), and GetTargetPhraseCollection().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class PhraseDictionaryTreeAdaptor [friend]

Definition at line 31 of file PDTAimp.h.


Member Data Documentation

Definition at line 57 of file PDTAimp.h.

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

Definition at line 48 of file PDTAimp.h.

Referenced by CleanUp(), and GetTargetPhraseCollection().

Definition at line 43 of file PDTAimp.h.

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

Definition at line 42 of file PDTAimp.h.

Referenced by Create(), and Factors2String().

Definition at line 40 of file PDTAimp.h.

Referenced by Create(), and CreateTargetPhrase().

Definition at line 53 of file PDTAimp.h.

Referenced by CacheSource(), Create(), and GetNumInputScores().

Definition at line 49 of file PDTAimp.h.

Referenced by CreateTargetPhrase(), and PruneTargetCandidates().

Definition at line 42 of file PDTAimp.h.

Referenced by Create(), and CreateTargetPhrase().

Definition at line 45 of file PDTAimp.h.

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

std::vector<float> Moses::PDTAimp::m_weights

Definition at line 39 of file PDTAimp.h.

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

Definition at line 41 of file PDTAimp.h.

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

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

Definition at line 58 of file PDTAimp.h.

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

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

Definition at line 59 of file PDTAimp.h.

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

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

Definition at line 58 of file PDTAimp.h.

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

Definition at line 57 of file PDTAimp.h.

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

Definition at line 55 of file PDTAimp.h.

Referenced by CacheSource(), and CleanUp().


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

Generated on Wed Feb 8 08:04:09 2012 for Moses by  doxygen 1.5.9