Moses::OxLMMapper Class Reference

#include <OxLMMapper.h>

Inheritance diagram for Moses::OxLMMapper:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 OxLMMapper (const boost::shared_ptr< oxlm::Vocabulary > &vocab, bool pos_back_off, const FactorType &pos_factor_type)
int convert (const Word &word) const
void convert (const std::vector< const Word * > &contextFactor, std::vector< int > &ids, int &word) const

Protected Types

typedef std::map< const
Moses::Factor *, int > 
Coll

Protected Attributes

bool posBackOff
FactorType posFactorType
Coll moses2Oxlm
int kUNKNOWN


Detailed Description

Definition at line 13 of file OxLMMapper.h.


Member Typedef Documentation

typedef std::map<const Moses::Factor*, int> Moses::OxLMMapper::Coll [protected]

Definition at line 32 of file OxLMMapper.h.


Constructor & Destructor Documentation

Moses::OxLMMapper::OxLMMapper ( const boost::shared_ptr< oxlm::Vocabulary > &  vocab,
bool  pos_back_off,
const FactorType pos_factor_type 
)

Definition at line 10 of file OxLMMapper.cpp.

References Moses::FactorCollection::AddFactor(), Moses::FactorCollection::Instance(), kUNKNOWN, moses2Oxlm, and str.

Here is the call graph for this function:


Member Function Documentation

void Moses::OxLMMapper::convert ( const std::vector< const Word * > &  contextFactor,
std::vector< int > &  ids,
int &  word 
) const

int Moses::OxLMMapper::convert ( const Word word  )  const

Definition at line 26 of file OxLMMapper.cpp.

References Moses::Word::GetFactor(), kUNKNOWN, moses2Oxlm, posBackOff, and posFactorType.

Here is the call graph for this function:


Member Data Documentation

int Moses::OxLMMapper::kUNKNOWN [protected]

Definition at line 34 of file OxLMMapper.h.

Referenced by convert(), and OxLMMapper().

Definition at line 33 of file OxLMMapper.h.

Referenced by convert(), and OxLMMapper().

Definition at line 29 of file OxLMMapper.h.

Referenced by convert(), and Moses::OxLMParallelMapper::convertSource().

Definition at line 30 of file OxLMMapper.h.

Referenced by convert(), and Moses::OxLMParallelMapper::convertSource().


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

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