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
31d3373b
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "261a53c8b1e24582f72542d47c7110f21934a641"
Commit
31d3373b
authored
Sep 01, 2019
by
LysandreJik
Browse files
Appends space before special token
parent
fede4ef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_transformers/tokenization_utils.py
pytorch_transformers/tokenization_utils.py
+1
-1
No files found.
pytorch_transformers/tokenization_utils.py
View file @
31d3373b
...
...
@@ -760,7 +760,7 @@ class PreTrainedTokenizer(object):
if
current_sub_text
:
sub_texts
.
append
(
self
.
convert_tokens_to_string
(
current_sub_text
))
current_sub_text
=
[]
sub_texts
.
append
(
token
)
sub_texts
.
append
(
" "
+
token
)
else
:
current_sub_text
.
append
(
token
)
if
current_sub_text
:
...
...
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