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
d8c09c65
Unverified
Commit
d8c09c65
authored
Dec 23, 2021
by
Alex Hedges
Committed by
GitHub
Dec 23, 2021
Browse files
Fix AttributeError from PreTrainedTokenizerFast.decoder (#14691)
parent
42105795
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/tokenization_utils_fast.py
src/transformers/tokenization_utils_fast.py
+1
-1
No files found.
src/transformers/tokenization_utils_fast.py
View file @
d8c09c65
...
@@ -180,7 +180,7 @@ class PreTrainedTokenizerFast(PreTrainedTokenizerBase):
...
@@ -180,7 +180,7 @@ class PreTrainedTokenizerFast(PreTrainedTokenizerBase):
"""
"""
`tokenizers.decoders.Decoder`: The Rust decoder for this tokenizer.
`tokenizers.decoders.Decoder`: The Rust decoder for this tokenizer.
"""
"""
return
self
.
_tokenizer
.
_tokenizer
.
decoder
return
self
.
_tokenizer
.
decoder
def
_convert_encoding
(
def
_convert_encoding
(
self
,
self
,
...
...
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