Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Commits
4a6d2e8e
Commit
4a6d2e8e
authored
Jun 8, 2020
by
Mateusz Klimaszewski
Browse files
Options
Downloads
Patches
Plain Diff
Fix features/targets configuration.
parent
2512fd9f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
config.template.jsonnet
+6
-6
6 additions, 6 deletions
config.template.jsonnet
with
6 additions
and
6 deletions
config.template.jsonnet
+
6
−
6
View file @
4a6d2e8e
...
@@ -108,7 +108,7 @@ assert pretrained_tokens == null || pretrained_transformer_name == null: "Can't
...
@@ -108,7 +108,7 @@ assert pretrained_tokens == null || pretrained_transformer_name == null: "Can't
features
:
features
,
features
:
features
,
targets
:
targets
,
targets
:
targets
,
# Whether data contains semantic relation field, bool
# Whether data contains semantic relation field, bool
use_sem
:
if
in_
feature
s
(
"semrel"
)
then
true
else
false
,
use_sem
:
if
in_
target
s
(
"semrel"
)
then
true
else
false
,
token_indexers
:
{
token_indexers
:
{
token
:
if
use_transformer
then
{
token
:
if
use_transformer
then
{
type
:
"pretrained_transformer_mismatched_tmp_fix"
,
type
:
"pretrained_transformer_mismatched_tmp_fix"
,
...
@@ -254,11 +254,11 @@ assert pretrained_tokens == null || pretrained_transformer_name == null: "Can't
...
@@ -254,11 +254,11 @@ assert pretrained_tokens == null || pretrained_transformer_name == null: "Can't
layer_dropout_probability
:
0.33
,
layer_dropout_probability
:
0.33
,
stacked_bilstm
:
{
stacked_bilstm
:
{
input_size
:
input_size
:
char_dim
+
projected_embedding_dim
+
(
char_dim
+
projected_embedding_dim
+
if
in_features
(
'xpostag'
)
then
xpostag_dim
else
0
+
(
if
in_features
(
'xpostag'
)
then
xpostag_dim
else
0
)
+
if
in_features
(
'lemma'
)
then
lemma_char_dim
else
0
+
(
if
in_features
(
'lemma'
)
then
lemma_char_dim
else
0
)
+
if
in_features
(
'upostag'
)
then
upostag_dim
else
0
+
(
if
in_features
(
'upostag'
)
then
upostag_dim
else
0
)
+
if
in_features
(
'feats'
)
then
feats_dim
else
0
,
(
if
in_features
(
'feats'
)
then
feats_dim
else
0
))
,
hidden_size
:
hidden_size
,
hidden_size
:
hidden_size
,
num_layers
:
num_layers
,
num_layers
:
num_layers
,
recurrent_dropout_probability
:
0.33
,
recurrent_dropout_probability
:
0.33
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment