#include <DomainFeature.h>
Public Member Functions | |
void | load (const std::string &fileName) |
std::string | getDomainOfSentence (int sentenceId) const |
Public Attributes | |
std::vector< std::pair< int, std::string > > | spec |
std::vector< std::string > | list |
std::map< std::string, int > | name2id |
Definition at line 20 of file DomainFeature.h.
string MosesTraining::Domain::getDomainOfSentence | ( | int | sentenceId | ) | const |
Definition at line 39 of file DomainFeature.cpp.
References spec.
Referenced by MosesTraining::DomainFeature::addPropertiesToPhrasePair().
void MosesTraining::Domain::load | ( | const std::string & | fileName | ) |
Definition at line 13 of file DomainFeature.cpp.
References lineNumber, list, name2id, spec, and util::tokenize().
std::vector< std::string > MosesTraining::Domain::list |
std::map< std::string, int > MosesTraining::Domain::name2id |
std::vector< std::pair< int, std::string > > MosesTraining::Domain::spec |