Skip to content
Snippets Groups Projects
Commit 35e3828f authored by Maja Jablonska's avatar Maja Jablonska
Browse files

debug messages

parent 0ceabef4
Branches
Tags
1 merge request!46Merge COMBO 3.0 into master
......@@ -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.')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment