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
131a528b
"vscode:/vscode.git/clone" did not exist on "2cf87e2bbb46ff7ec9dd2746d694d41b6815fb43"
Unverified
Commit
131a528b
authored
Dec 14, 2023
by
Arthur
Committed by
GitHub
Dec 14, 2023
Browse files
well well well (#28011)
parent
17506d12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/wav2vec2/tokenization_wav2vec2.py
src/transformers/models/wav2vec2/tokenization_wav2vec2.py
+1
-1
No files found.
src/transformers/models/wav2vec2/tokenization_wav2vec2.py
View file @
131a528b
...
@@ -273,7 +273,7 @@ class Wav2Vec2CTCTokenizer(PreTrainedTokenizer):
...
@@ -273,7 +273,7 @@ class Wav2Vec2CTCTokenizer(PreTrainedTokenizer):
to_add
=
[]
to_add
=
[]
for
token
in
new_tokens
:
for
token
in
new_tokens
:
if
isinstance
(
token
,
str
):
if
isinstance
(
token
,
str
):
to_add
.
append
(
AddedToken
(
token
,
rstrip
=
False
,
lstrip
=
False
,
normalize
=
False
))
to_add
.
append
(
AddedToken
(
token
,
rstrip
=
False
,
lstrip
=
False
,
normalize
d
=
False
))
else
:
else
:
to_add
.
append
(
token
)
to_add
.
append
(
token
)
...
...
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