Welcome to mirror list, hosted at ThFree Co, Russian Federation.

types.h « DynSAInclude « src « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 44401088916ad013a6945f12bf3a4bdfbe7975ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef moses_DynSAInclude_types_h
#define moses_DynSAInclude_types_h

#include <iostream>
#include <map>
#include <set>
#include <vector>
#include <typeinfo>
#include <stdint.h>
#define iterate(c, i) for(typeof(c.begin()) i = c.begin(); i != c.end(); ++i)
#define piterate(c, i) for(typeof(c->begin()) i = c->begin(); i != c->end(); ++i)
#define riterate(c, i) for(typeof(c.rbegin()) i = c.rbegin(); i != c.rend(); ++i)


#define THREADED false
#define THREAD_MAX 2
#define MAX_NGRAM_ORDER 8
#define MAX_STR_LEN 300
#define PRIME 8589935681ULL
#define MAX_HASH_FUNCS 1000
//#define PRIME 409

using std::string;
using std::cout;
using std::cerr;
using std::endl;

//typedefs for projects
typedef std::string word_t;     // word as string
typedef unsigned int wordID_t;      // word mapped to integer
typedef std::string date_t;     // a date marker
typedef unsigned int count_t;   // for 64-bit to 32-bit compatibility

#endif