Appends space before special token
This commit is contained in:
1 parent
fede4ef45d
commit
31d3373bc9
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user