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
b74a9553
Unverified
Commit
b74a9553
authored
Apr 19, 2022
by
Wonjae Kim
Committed by
GitHub
Apr 19, 2022
Browse files
fix `rum_clm.py` seeking text column name twice (#16624)
parent
3663fca4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
examples/tensorflow/language-modeling/run_clm.py
examples/tensorflow/language-modeling/run_clm.py
+0
-4
No files found.
examples/tensorflow/language-modeling/run_clm.py
View file @
b74a9553
...
...
@@ -347,10 +347,6 @@ def main():
column_names
=
raw_datasets
[
"train"
].
column_names
text_column_name
=
"text"
if
"text"
in
column_names
else
column_names
[
0
]
# First we tokenize all the texts.
column_names
=
raw_datasets
[
"train"
].
column_names
text_column_name
=
"text"
if
"text"
in
column_names
else
column_names
[
0
]
def
tokenize_function
(
examples
):
return
tokenizer
(
examples
[
text_column_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