blob: 8502312490703489365b617de6552b1f4094d125 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
//The framework for obtaining user arguments has been inspired by Sittichai Jiampojamarn's Many-to-Many alignment model (m2m-aligner). https://code.google.com/p/m2m-aligner/
#pragma once
#include <string>
namespace nplm
{
struct param
{
std::string train_file;
std::string validation_file;
std::string test_file;
std::string model_file;
std::string unigram_probs_file;
std::string words_file;
std::string input_words_file;
std::string output_words_file;
std::string model_prefix;
int ngram_size;
int vocab_size;
int input_vocab_size;
int output_vocab_size;
int num_hidden;
int embedding_dimension;
int input_embedding_dimension;
int output_embedding_dimension;
std::string activation_function;
std::string loss_function;
std::string parameter_update;
int minibatch_size;
int validation_minibatch_size;
int num_epochs;
double learning_rate;
double conditioning_constant;
double decay;
double adagrad_epsilon;
bool init_normal;
double init_range;
int num_noise_samples;
bool use_momentum;
double initial_momentum;
double final_momentum;
double L2_reg;
bool normalization;
double normalization_init;
int num_threads;
int debug;
bool share_embeddings;
};
} // namespace nplm
|