Skip to content

Instantly share code, notes, and snippets.

@nikhilno1
Last active July 24, 2019 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikhilno1/a43988c4e4ff3c49c806e409080c8d79 to your computer and use it in GitHub Desktop.
Save nikhilno1/a43988c4e4ff3c49c806e409080c8d79 to your computer and use it in GitHub Desktop.
Code diff between run_dataset.py and run_glue.py
< """ 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