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
9710b68d
Commit
9710b68d
authored
Jun 18, 2019
by
thomwolf
Browse files
fix pickles
parent
15ebd67d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
examples/run_classifier.py
examples/run_classifier.py
+6
-0
No files found.
examples/run_classifier.py
View file @
9710b68d
...
...
@@ -40,6 +40,12 @@ from pytorch_pretrained_bert.optimization import BertAdam, WarmupLinearSchedule
from
run_classifier_dataset_utils
import
processors
,
output_modes
,
convert_examples_to_features
,
compute_metrics
if
sys
.
version_info
[
0
]
==
2
:
import
cPickle
as
pickle
else
:
import
pickle
logger
=
logging
.
getLogger
(
__name__
)
...
...
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