LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
train_params_graph_dp.h
Go to the documentation of this file.
1
// Copyright 2022 CEA LIST
2
// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3
//
4
// SPDX-License-Identifier: MIT
5
6
#ifndef DEEPLIMA_LIBS_TASKS_GRAPH_DP_PARAMS_H
7
#define DEEPLIMA_LIBS_TASKS_GRAPH_DP_PARAMS_H
8
9
#include <string>
10
11
#include "
tasks/common/train_params.h
"
12
13
namespace
deeplima
14
{
15
namespace
graph_dp
16
{
17
namespace
train
18
{
19
20
struct
train_params_graph_dp_t
:
public
deeplima::train::train_params_t
21
{
22
std::string
m_embeddings_fn
;
23
24
std::string
m_tasks_string
;
25
26
std::vector<size_t>
m_rnn_hidden_dims
;
27
size_t
m_trainable_embeddings_dim
;
28
size_t
m_trainable_embeddings_cutoff_freq
;
// ipm
29
30
size_t
m_sequence_length
;
31
32
bool
m_input_includes_root
;
33
34
train_params_graph_dp_t
()
35
:
m_tasks_string
(
"arc"
),
36
m_rnn_hidden_dims
({64}),
37
m_trainable_embeddings_dim
(0),
38
m_trainable_embeddings_cutoff_freq
(100),
39
m_sequence_length
(256),
40
m_input_includes_root
(
true
) {
41
m_batch_size
= 8;
42
}
43
};
44
45
}
// namespace train
46
}
// namespace graph_dp
47
}
// namespace deeplima
48
49
#endif
deeplima
Definition
dependency_parser.h:28
deeplima::graph_dp::train::train_params_graph_dp_t
Definition
train_params_graph_dp.h:21
deeplima::graph_dp::train::train_params_graph_dp_t::m_sequence_length
size_t m_sequence_length
Definition
train_params_graph_dp.h:30
deeplima::graph_dp::train::train_params_graph_dp_t::m_tasks_string
std::string m_tasks_string
Definition
train_params_graph_dp.h:24
deeplima::graph_dp::train::train_params_graph_dp_t::train_params_graph_dp_t
train_params_graph_dp_t()
Definition
train_params_graph_dp.h:34
deeplima::graph_dp::train::train_params_graph_dp_t::m_trainable_embeddings_cutoff_freq
size_t m_trainable_embeddings_cutoff_freq
Definition
train_params_graph_dp.h:28
deeplima::graph_dp::train::train_params_graph_dp_t::m_input_includes_root
bool m_input_includes_root
Definition
train_params_graph_dp.h:32
deeplima::graph_dp::train::train_params_graph_dp_t::m_trainable_embeddings_dim
size_t m_trainable_embeddings_dim
Definition
train_params_graph_dp.h:27
deeplima::graph_dp::train::train_params_graph_dp_t::m_rnn_hidden_dims
std::vector< size_t > m_rnn_hidden_dims
Definition
train_params_graph_dp.h:26
deeplima::graph_dp::train::train_params_graph_dp_t::m_embeddings_fn
std::string m_embeddings_fn
Definition
train_params_graph_dp.h:22
deeplima::train::train_params_t
Definition
train_params.h:20
deeplima::train::train_params_t::m_batch_size
size_t m_batch_size
Definition
train_params.h:39
train_params.h
deeplima
libs
tasks
graph_dp
model
train_params_graph_dp.h
Generated by
1.9.8