forked from HIT-SCIR/ltp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.h
43 lines (34 loc) · 963 Bytes
/
options.h
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
35
36
37
38
39
40
41
42
43
#ifndef __LTP_SEGMENTOR_OPTIONS_H__
#define __LTP_SEGMENTOR_OPTIONS_H__
#include <iostream>
namespace ltp {
namespace segmentor {
struct ModelOptions {
std::string model_file;
};
struct TrainOptions {
std::string train_file;
std::string holdout_file;
std::string model_name;
std::string personal_model_name;
std::string algorithm;
int max_iter;
int display_interval;
int rare_feature_threshold;
};
struct TestOptions {
std::string test_file;
std::string model_file;
std::string personal_model_file;
std::string lexicon_file;
};
struct DumpOptions {
std::string model_file;
};
extern ModelOptions model_opt;
extern TrainOptions train_opt;
extern TestOptions test_opt;
extern DumpOptions dump_opt;
} // end for namespace segmentor
} // end for namespace ltp
#endif // end for __LTP_SEGMENTOR_OPTIONS_H__