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
8a4e90ff
Commit
8a4e90ff
authored
Mar 17, 2019
by
Ananya Harsh Jha
Browse files
corrected folder creation error for MNLI-MM, verified GLUE results
parent
e0bf01d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
examples/run_classifier.py
examples/run_classifier.py
+8
-3
No files found.
examples/run_classifier.py
View file @
8a4e90ff
...
...
@@ -950,6 +950,11 @@ def main():
task_name
=
"mnli-mm"
processor
=
processors
[
task_name
]()
if
os
.
path
.
exists
(
args
.
output_dir
+
'-MM'
)
and
os
.
listdir
(
args
.
output_dir
+
'-MM'
)
and
args
.
do_train
:
raise
ValueError
(
"Output directory ({}) already exists and is not empty."
.
format
(
args
.
output_dir
))
if
not
os
.
path
.
exists
(
args
.
output_dir
+
'-MM'
):
os
.
makedirs
(
args
.
output_dir
+
'-MM'
)
eval_examples
=
processor
.
get_dev_examples
(
args
.
data_dir
)
eval_features
=
convert_examples_to_features
(
eval_examples
,
label_list
,
args
.
max_seq_length
,
tokenizer
,
output_mode
)
...
...
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