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
da2e47ad
Commit
da2e47ad
authored
Sep 27, 2019
by
thomwolf
Browse files
clean up a little run_tf_glue
parent
528c288f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/run_tf_glue.py
examples/run_tf_glue.py
+1
-1
No files found.
examples/run_tf_glue.py
View file @
da2e47ad
import
tensorflow
as
tf
import
tensorflow_datasets
from
transformers
import
*
from
transformers
import
BertTokenizer
,
TFBertForSequenceClassification
,
glue_convert_examples_to_features
,
BertForSequenceClassification
# Load dataset, tokenizer, model from pretrained model/vocabulary
tokenizer
=
BertTokenizer
.
from_pretrained
(
'bert-base-cased'
)
...
...
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