"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "d329b633692c6accbc6ea03f80a67a5d3e5814e0"
Unverified Commit 254d9c06 authored by bhuang's avatar bhuang Committed by GitHub
Browse files

Update run_glue_no_trainer.py (#17546)

parent 83439012
...@@ -270,7 +270,7 @@ def main(): ...@@ -270,7 +270,7 @@ def main():
data_files["train"] = args.train_file data_files["train"] = args.train_file
if args.validation_file is not None: if args.validation_file is not None:
data_files["validation"] = args.validation_file data_files["validation"] = args.validation_file
extension = (args.train_file if args.train_file is not None else args.valid_file).split(".")[-1] extension = (args.train_file if args.train_file is not None else args.validation_file).split(".")[-1]
raw_datasets = load_dataset(extension, data_files=data_files) raw_datasets = load_dataset(extension, data_files=data_files)
# See more about loading any type of standard or custom dataset at # See more about loading any type of standard or custom dataset at
# https://huggingface.co/docs/datasets/loading_datasets.html. # https://huggingface.co/docs/datasets/loading_datasets.html.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment