Last active
July 24, 2019 06:41
-
-
Save nikhilno1/a43988c4e4ff3c49c806e409080c8d79 to your computer and use it in GitHub Desktop.
Code diff between run_dataset.py and run_glue.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
< """ Finetuning the library models for sequence classification on various datasets (Bert, XLM, XLNet).""" | |
--- | |
> """ Finetuning the library models for sequence classification on GLUE (Bert, XLM, XLNet).""" | |
43c43 | |
< from utils_dataset import (compute_metrics, convert_examples_to_features, | |
--- | |
> from utils_glue import (compute_metrics, convert_examples_to_features, | |
177,178c177,178 | |
< eval_task_names = (args.task_name,) | |
< eval_outputs_dirs = (args.output_dir,) | |
--- | |
> eval_task_names = ("mnli", "mnli-mm") if args.task_name == "mnli" else (args.task_name,) | |
> eval_outputs_dirs = (args.output_dir, args.output_dir + '-MM') if args.task_name == "mnli" else (args.output_dir,) | |
392c392 | |
< # Prepare task | |
--- | |
> # Prepare GLUE task |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment