Skip to content

Commit

Permalink
no print
Browse files Browse the repository at this point in the history
  • Loading branch information
markus583 committed May 15, 2024
1 parent 4fcb260 commit 4362896
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions wtpsplit/evaluation/intrinsic.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,10 @@ def load_or_compute_logits(args, model, eval_data, valid_data=None, save_str: st
else:
test_labels = get_labels(lang_code, test_sentences, after_space=False)
if args.skip_punct:
print(test_logits[:, 0].shape)
# remove punct logits
test_logits = test_logits[:, 0]
# back to [N, 1]
test_logits = np.expand_dims(test_logits, axis=1)
print(test_logits.shape)
dset_group.create_dataset("test_logits", data=test_logits)
dset_group.create_dataset("test_labels", data=test_labels)

Expand Down

0 comments on commit 4362896

Please sign in to comment.