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_SHIFTREDUCE_OPTION_H__
2 #define __ZGEN_SHIFTREDUCE_OPTION_H__
3 
4 #include <string>
5 
6 namespace ZGen {
7 namespace ShiftReduce {
8 
9 //
10 struct Option {
11  enum { NONE, PARTIAL, FULL,
15  };
16 
19 
21  std::string model_path;
22 
24  std::string input_path;
25 
27  std::string output_path;
28 
30  std::string reference_path;
31 
33  std::string postag_dict_path;
34 
35  // [MISC
37 
39  int beam_size;
40 
42  bool learn;
43 
46 
49 
51  bool verbose;
52 };
53 
54 typedef Option option_t;
55 
56 } // end for namespace ShiftReduce
57 } // end for namespace ZGen
58 
59 #endif // end for __ZGEN_SHIFTREDUCE_OPTION_H__
std::string reference_path
The reference path.
Definition: option.h:30
Definition: option.h:10
int input_type
The input type.
Definition: option.h:18
bool shuffle_instance
Definition: option.h:48
bool verbose
Specify verbose logging.
Definition: option.h:51
Definition: option.h:11
int display_interval
Definition: option.h:36
bool output_label
Specify whether output labels.
Definition: option.h:45
std::string output_path
The output path.
Definition: option.h:27
Definition: option.h:11
Definition: option.h:11
std::string model_path
Path to the model.
Definition: option.h:21
std::string input_path
The input path.
Definition: option.h:24
Option option_t
Definition: option.h:54
std::string postag_dict_path
AUX: the postag dict path, only actived at NONE mode.
Definition: option.h:33
bool learn
Specify whether perform learning.
Definition: option.h:42
int beam_size
The size of beam.
Definition: option.h:39