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
d9ffb87e
Unverified
Commit
d9ffb87e
authored
Oct 12, 2020
by
Julien Plu
Committed by
GitHub
Oct 12, 2020
Browse files
Fix tf text class (#7724)
* Fix test * fix generic text classification * fix test * Fix tests
parent
d6175a42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/text-classification/run_tf_text_classification.py
examples/text-classification/run_tf_text_classification.py
+1
-1
No files found.
examples/text-classification/run_tf_text_classification.py
View file @
d9ffb87e
...
...
@@ -60,7 +60,7 @@ def get_tfds(
for
k
in
files
.
keys
():
transformed_ds
[
k
]
=
ds
[
k
].
map
(
lambda
example
:
tokenizer
.
batch_encode_plus
(
(
example
[
features_name
[
0
]],
features_name
[
1
]),
(
example
[
features_name
[
0
]],
example
[
features_name
[
1
]
]
),
truncation
=
True
,
max_length
=
max_seq_length
,
padding
=
"max_length"
,
...
...
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