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
041a901f
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "eab5f59682cf197cd5fd19d499b3670dbef67000"
Commit
041a901f
authored
Nov 22, 2019
by
Nikolay Korolev
Committed by
Julien Chaumond
Nov 23, 2019
Browse files
Fix typo in documentation. toto -> to
parent
26db31e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
transformers/tokenization_gpt2.py
transformers/tokenization_gpt2.py
+1
-1
No files found.
transformers/tokenization_gpt2.py
View file @
041a901f
...
...
@@ -184,7 +184,7 @@ class GPT2Tokenizer(PreTrainedTokenizer):
""" Tokenize a string.
Args:
- add_prefix_space (boolean, default False):
Begin the sentence with at least one space to
to
get invariance to word order in GPT-2 (and RoBERTa) tokenizers.
Begin the sentence with at least one space to get invariance to word order in GPT-2 (and RoBERTa) tokenizers.
"""
if
add_prefix_space
:
text
=
' '
+
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