Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markus583 committed Apr 1, 2024
1 parent 2ad7843 commit cdcaeba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wtpsplit/evaluation/intrinsic_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def load_or_compute_logits(args, model, eval_data, valid_data=None, save_str: st
for dataset_name, dataset in eval_data[lang_code]["sentence"].items():
# train on all mldb, eval on mldbW
if "mldbW" in args.eval_data_path and (
"mldbW" not in args.model_path or "mldbW" not in args.adapter_path
"mldbW" not in args.model_path and "mldbW" not in args.adapter_path
):
dataset_load_name = "unk"
else:
Expand Down
4 changes: 3 additions & 1 deletion wtpsplit/train/train_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,9 @@ def compute_metrics(trainer):
else:
eval_function = "intrinsic"
if args.do_lowercase and args.do_remove_punct:
suffix = "--do_lowercase --do_remove_punct"
suffix = "--do_lowercase --do_remove_punct"
else:
suffix = ""
if "adapter" in training_args.output_dir:
model_info = f"--model_path {args.model_name_or_path} --adapter_path {training_args.output_dir}"
else:
Expand Down

0 comments on commit cdcaeba

Please sign in to comment.