Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
0dbddba6
Commit
0dbddba6
authored
Feb 17, 2020
by
VictorSanh
Browse files
fix typo in hans example call
parent
29ab4b7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/README.md
examples/README.md
+2
-2
No files found.
examples/README.md
View file @
0dbddba6
...
...
@@ -772,7 +772,7 @@ export HANS_DIR=path-to-hans
export
MODEL_TYPE
=
type-of-the-model-e.g.-bert-roberta-xlnet-etc
export
MODEL_PATH
=
path-to-the-model-directory-that-is-trained-on-NLI-e.g.-by-using-run_glue.py
python examples/test_hans.py
\
python examples/
hans/
test_hans.py
\
--task_name
hans
\
--model_type
$MODEL_TYPE
\
--do_eval
\
...
...
@@ -780,7 +780,7 @@ python examples/test_hans.py \
--data_dir
$HANS_DIR
\
--model_name_or_path
$MODEL_PATH
\
--max_seq_length
128
\
-output_dir
$MODEL_PATH
\
-
-output_dir
$MODEL_PATH
\
```
This will create the hans_predictions.txt file in MODEL_PATH, which can then be evaluated using hans/evaluate_heur_output.py from the HANS dataset.
...
...
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