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
d429c15f
Commit
d429c15f
authored
Dec 06, 2018
by
Grégory Châtel
Browse files
Removing old code from copy-paste.
parent
4fa7892d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
examples/run_swag.py
examples/run_swag.py
+0
-8
No files found.
examples/run_swag.py
View file @
d429c15f
...
...
@@ -379,14 +379,6 @@ def main():
raise
ValueError
(
"Output directory ({}) already exists and is not empty."
.
format
(
args
.
output_dir
))
os
.
makedirs
(
args
.
output_dir
,
exist_ok
=
True
)
# task_name = args.task_name.lower()
# if task_name not in processors:
# raise ValueError("Task not found: %s" % (task_name))
# processor = processors[task_name]()
# label_list = processor.get_labels()
tokenizer
=
BertTokenizer
.
from_pretrained
(
args
.
bert_model
,
do_lower_case
=
args
.
do_lower_case
)
train_examples
=
None
...
...
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