Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Merge requests
!47
Fixed multiword prediction + bug that made the code write empty predictions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixed multiword prediction + bug that made the code write empty predictions
multiword_fix
into
main
Overview
0
Commits
14
Pipelines
0
Changes
13
Merged
Martyna Wiącek
requested to merge
multiword_fix
into
main
1 year ago
Overview
0
Commits
14
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
54e37314
Prev
Next
Show latest version
1 file
+
5
−
5
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
54e37314
fix default_split_level
· 54e37314
Martyna Wiącek
authored
1 year ago
combo/main.py
+
5
−
5
Options
@@ -156,8 +156,8 @@ def get_defaults(dataset_reader: Optional[DatasetReader],
# Dataset reader is required to read training data and/or for training (and validation) data loader
dataset_reader
=
default_ud_dataset_reader
(
FLAGS
.
pretrained_transformer_name
,
tokenizer
=
LamboTokenizer
(
FLAGS
.
tokenizer_language
,
default_turns
=
FLAGS
.
turns
,
default_split_subwords
=
FLAGS
.
split_subwords
)
default_split_level
=
"
TURNS
"
if
FLAGS
.
turns
else
"
SENTENCES
"
,
default_split_subwords
=
FLAGS
.
split_subwords
)
)
if
not
training_data_loader
:
@@ -403,9 +403,9 @@ def run(_):
logger
.
info
(
"
No dataset reader in the configuration or archive file - using a default UD dataset reader
"
,
prefix
=
prefix
)
dataset_reader
=
default_ud_dataset_reader
(
FLAGS
.
pretrained_transformer_name
,
tokenizer
=
LamboTokenizer
(
tokenizer_language
,
default_turns
=
FLAGS
.
turns
,
default_split_subwords
=
FLAGS
.
split_subwords
)
tokenizer
=
LamboTokenizer
(
tokenizer_language
,
default_split_level
=
"
TURNS
"
if
FLAGS
.
turns
else
"
SENTENCES
"
,
default_split_subwords
=
FLAGS
.
split_subwords
)
)
predictor
=
COMBO
(
model
,
dataset_reader
)