ZGen  0.2.0
a linearization system for natural language.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
option.h
Go to the documentation of this file.
1 #ifndef __ZGEN_BEST_FIRST_OPTION_H__
2 #define __ZGEN_BEST_FIRST_OPTION_H__
3 
4 #include <string>
5 
6 namespace ZGen {
7 
8 namespace BestFirst {
9 
10 struct Option {
11  enum {NONE, PARTIAL, FULL};
12 
15 
17  std::string model_path;
18 
20  std::string postag_dict_path;
21 
23  std::string reference_path;
24 
26  std::string input_path;
27 
29  std::string output_path;
30 
32  double timeout;
33 
35  int nbest;
36 
39 
40  bool greedy;
41 
42  bool learn;
43 };
44 
45 typedef Option option_t;
46 
47 } // end for namespace BestFirst
48 
49 } // end for namespace ZGen
50 
51 #endif // end for __ZGEN_BEST_FIRST_OPTION_H__
std::string output_path
the path to the output file.
Definition: option.h:29
int input_type
Definition: option.h:14
bool learn
Definition: option.h:42
std::string input_path
the path to the input file.
Definition: option.h:26
Definition: option.h:11
double timeout
the timeout threshold for timeout strategy.
Definition: option.h:32
std::string model_path
the path to the model.
Definition: option.h:17
std::string postag_dict_path
the path to the postag dict.
Definition: option.h:20
Definition: option.h:10
Definition: option.h:11
Option option_t
Definition: option.h:45
int display_interval
The display interval.
Definition: option.h:38
std::string reference_path
the path to the reference input.
Definition: option.h:23
Definition: option.h:11
bool greedy
Definition: option.h:40
int nbest
the nbest number.
Definition: option.h:35