Skip to content

Commit

Permalink
keep logits
Browse files Browse the repository at this point in the history
  • Loading branch information
markus583 committed Apr 8, 2024
1 parent 4b74828 commit 5fba936
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wtpsplit/evaluation/intrinsic.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class Args:
save_suffix: str = ""
do_lowercase: bool = False
do_remove_punct: bool = False
keep_logits: bool = False


def process_logits(text, model, lang_code, args):
Expand Down Expand Up @@ -372,7 +373,8 @@ def main(args):
),
indent=4,
)
os.remove(f.filename)
if not args.keep_logits:
os.remove(f.filename)
return results, results_avg, total_test_time


Expand Down

0 comments on commit 5fba936

Please sign in to comment.