ZGen
0.2.0
a linearization system for natural language.
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
shiftreduce
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
,
12
FULL_WITH_GUIDANCE_FEATURE
,
13
FULL_WITH_TOPDOWN_FEATURE
,
14
FULL_WITH_TOPDOWN_CONSTRAIN
,
15
};
16
18
int
input_type
;
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
36
int
display_interval
;
37
39
int
beam_size
;
40
42
bool
learn
;
43
45
bool
output_label
;
46
48
bool
shuffle_instance
;
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__
ZGen::ShiftReduce::Option::reference_path
std::string reference_path
The reference path.
Definition:
option.h:30
ZGen::ShiftReduce::Option
Definition:
option.h:10
ZGen::ShiftReduce::Option::input_type
int input_type
The input type.
Definition:
option.h:18
ZGen::ShiftReduce::Option::shuffle_instance
bool shuffle_instance
Definition:
option.h:48
ZGen::ShiftReduce::Option::verbose
bool verbose
Specify verbose logging.
Definition:
option.h:51
ZGen::ShiftReduce::Option::NONE
Definition:
option.h:11
ZGen::ShiftReduce::Option::display_interval
int display_interval
Definition:
option.h:36
ZGen::ShiftReduce::Option::output_label
bool output_label
Specify whether output labels.
Definition:
option.h:45
ZGen::ShiftReduce::Option::output_path
std::string output_path
The output path.
Definition:
option.h:27
ZGen::ShiftReduce::Option::PARTIAL
Definition:
option.h:11
ZGen::ShiftReduce::Option::FULL
Definition:
option.h:11
ZGen::ShiftReduce::Option::FULL_WITH_TOPDOWN_CONSTRAIN
Definition:
option.h:14
ZGen::ShiftReduce::Option::model_path
std::string model_path
Path to the model.
Definition:
option.h:21
ZGen::ShiftReduce::Option::input_path
std::string input_path
The input path.
Definition:
option.h:24
ZGen::ShiftReduce::Option::FULL_WITH_GUIDANCE_FEATURE
Definition:
option.h:12
ZGen::ShiftReduce::Option::FULL_WITH_TOPDOWN_FEATURE
Definition:
option.h:13
ZGen::ShiftReduce::option_t
Option option_t
Definition:
option.h:54
ZGen::ShiftReduce::Option::postag_dict_path
std::string postag_dict_path
AUX: the postag dict path, only actived at NONE mode.
Definition:
option.h:33
ZGen::ShiftReduce::Option::learn
bool learn
Specify whether perform learning.
Definition:
option.h:42
ZGen::ShiftReduce::Option::beam_size
int beam_size
The size of beam.
Definition:
option.h:39
Generated by
1.8.6