mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +03:00
33 lines
539 B
C++
33 lines
539 B
C++
// $Id$
|
|
|
|
#ifndef _DOMAIN_H
|
|
#define _DOMAIN_H
|
|
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <assert.h>
|
|
#include <stdlib.h>
|
|
#include <string>
|
|
#include <queue>
|
|
#include <map>
|
|
#include <cmath>
|
|
|
|
extern std::vector<std::string> tokenize( const char*);
|
|
|
|
namespace MosesTraining
|
|
{
|
|
|
|
class Domain
|
|
{
|
|
public:
|
|
std::vector< std::pair< int, std::string > > spec;
|
|
std::vector< std::string > list;
|
|
std::map< std::string, int > name2id;
|
|
void load( const std::string &fileName );
|
|
std::string getDomainOfSentence( int sentenceId );
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|