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
Commits
109e0255
Commit
109e0255
authored
1 year ago
by
Maja Jablonska
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes to CLI prediction
parent
007b8bcc
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!46
Merge COMBO 3.0 into master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
combo/main.py
+7
-3
7 additions, 3 deletions
combo/main.py
with
7 additions
and
3 deletions
combo/main.py
+
7
−
3
View file @
109e0255
...
...
@@ -309,9 +309,9 @@ def run(_):
if
not
dataset_reader
:
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
()
dataset_reader
=
default_ud_dataset_reader
(
FLAGS
.
pretrained_transformer_name
)
predictor
=
COMBO
(
model
,
dataset_reader
)
predictor
=
COMBO
(
model
,
dataset_reader
,
LamboTokenizer
(
language
=
FLAGS
.
tokenizer_language
)
)
if
FLAGS
.
input_file
==
'
-
'
:
print
(
"
Interactive mode.
"
)
...
...
@@ -322,7 +322,11 @@ def run(_):
print
(
"
{:15} {:15} {:10} {:10} {:10}
"
.
format
(
token
.
text
,
token
.
lemma
,
token
.
upostag
,
token
.
head
,
token
.
deprel
))
elif
FLAGS
.
output_file
:
checks
.
file_exists
(
FLAGS
.
input_file
)
try
:
checks
.
file_exists
(
FLAGS
.
input_file
)
except
ConfigurationError
as
e
:
handle_error
(
e
,
prefix
)
logger
.
info
(
"
Predicting examples from file
"
,
prefix
=
prefix
)
if
FLAGS
.
conllu_format
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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