Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
254d9c06
Unverified
Commit
254d9c06
authored
Jun 03, 2022
by
bhuang
Committed by
GitHub
Jun 03, 2022
Browse files
Update run_glue_no_trainer.py (#17546)
parent
83439012
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/text-classification/run_glue_no_trainer.py
examples/pytorch/text-classification/run_glue_no_trainer.py
+1
-1
No files found.
examples/pytorch/text-classification/run_glue_no_trainer.py
View file @
254d9c06
...
...
@@ -270,7 +270,7 @@ def main():
data_files
[
"train"
]
=
args
.
train_file
if
args
.
validation_file
is
not
None
:
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
.
valid
ation
_file
).
split
(
"."
)[
-
1
]
raw_datasets
=
load_dataset
(
extension
,
data_files
=
data_files
)
# See more about loading any type of standard or custom dataset at
# https://huggingface.co/docs/datasets/loading_datasets.html.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment