MosesTraining::Domain Class Reference

#include <DomainFeature.h>

List of all members.

Public Member Functions

void load (const std::string &fileName)
std::string getDomainOfSentence (int sentenceId) const

Public Attributes

std::vector< std::pair< int,
std::string > > 
std::vector< std::string > list
std::map< std::string, int > name2id

Detailed Description

Definition at line 20 of file DomainFeature.h.

Member Function Documentation

string MosesTraining::Domain::getDomainOfSentence ( int  sentenceId  )  const

Definition at line 39 of file DomainFeature.cpp.

References spec.

Referenced by MosesTraining::DomainFeature::addPropertiesToPhrasePair().

Here is the caller graph for this function:

void MosesTraining::Domain::load ( const std::string &  fileName  ) 

Definition at line 13 of file DomainFeature.cpp.

References lineNumber, list, name2id, spec, and util::tokenize().

Here is the call graph for this function:

Member Data Documentation

std::vector< std::string > MosesTraining::Domain::list

Definition at line 24 of file DomainFeature.h.

Referenced by load().

std::map< std::string, int > MosesTraining::Domain::name2id

Definition at line 25 of file DomainFeature.h.

Referenced by load().

std::vector< std::pair< int, std::string > > MosesTraining::Domain::spec

Definition at line 23 of file DomainFeature.h.

Referenced by getDomainOfSentence(), and load().

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

Generated on Thu Jul 6 00:34:05 2017 for Moses by  doxygen 1.5.9