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
35e3828f
Commit
35e3828f
authored
1 year ago
by
Maja Jablonska
Browse files
Options
Downloads
Patches
Plain Diff
debug messages
parent
0ceabef4
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/combo_model.py
+1
-0
1 addition, 0 deletions
combo/combo_model.py
with
1 addition
and
0 deletions
combo/combo_model.py
+
1
−
0
View file @
35e3828f
...
...
@@ -173,6 +173,7 @@ class ComboModel(Model, FromParameters):
mapped_gold_labels
=
[]
for
_
,
cat_indices
in
self
.
morphological_feat
.
slices
.
items
():
try
:
print
(
"
Feats dimensions:
"
,
feats
.
shape
,
"
cat_indices shape
"
,
len
(
cat_indices
),
"
min and max
"
,
min
(
cat_indices
),
max
(
cat_indices
))
mapped_gold_labels
.
append
(
feats
[:,
:,
cat_indices
].
argmax
(
dim
=-
1
))
except
TypeError
:
raise
ConfigurationError
(
'
Feats is None - if no feats are provided, the morphological_feat property should be set to None.
'
)
...
...
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