Skip to content

Commit

Permalink
skip if no logits
Browse files Browse the repository at this point in the history
  • Loading branch information
markus583 committed Feb 22, 2024
1 parent d4abc80 commit 4366677
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wtpsplit/evaluation/intrinsic.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ def main(args):
corrupt(sentence, do_lowercase=args.do_lowercase, do_remove_punct=args.do_remove_punct)
for sentence in sentences
]
# check if f[lang_code][dataset_name] exists
if lang_code not in f or dataset_name not in f[lang_code]:
continue

if "train_logits" in f[lang_code][dataset_name]:
feature_indices = None
Expand Down

0 comments on commit 4366677

Please sign in to comment.