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
4f19881f
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "6cdbd73e01a9719bfaec07d91fd108e8d932bbbb"
Unverified
Commit
4f19881f
authored
Jul 26, 2021
by
Sylvain Gugger
Committed by
GitHub
Jul 26, 2021
Browse files
Fix documentation of BigBird tokenizer (#12889)
parent
303989de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/models/big_bird/tokenization_big_bird_fast.py
...ransformers/models/big_bird/tokenization_big_bird_fast.py
+2
-2
No files found.
src/transformers/models/big_bird/tokenization_big_bird_fast.py
View file @
4f19881f
...
@@ -67,14 +67,14 @@ class BigBirdTokenizerFast(PreTrainedTokenizerFast):
...
@@ -67,14 +67,14 @@ class BigBirdTokenizerFast(PreTrainedTokenizerFast):
vocab_file (:obj:`str`):
vocab_file (:obj:`str`):
`SentencePiece <https://github.com/google/sentencepiece>`__ file (generally has a `.spm` extension) that
`SentencePiece <https://github.com/google/sentencepiece>`__ file (generally has a `.spm` extension) that
contains the vocabulary necessary to instantiate a tokenizer.
contains the vocabulary necessary to instantiate a tokenizer.
bos_token (:obj:`str`, `optional`, defaults to :obj:`"
[CLS]
"`):
bos_token (:obj:`str`, `optional`, defaults to :obj:`"
<s>
"`):
The beginning of sequence token that was used during pretraining. Can be used a sequence classifier token.
The beginning of sequence token that was used during pretraining. Can be used a sequence classifier token.
.. note::
.. note::
When building a sequence using special tokens, this is not the token that is used for the beginning of
When building a sequence using special tokens, this is not the token that is used for the beginning of
sequence. The token used is the :obj:`cls_token`.
sequence. The token used is the :obj:`cls_token`.
eos_token (:obj:`str`, `optional`, defaults to :obj:`"
[SEP]
"`):
eos_token (:obj:`str`, `optional`, defaults to :obj:`"
</s>
"`):
The end of sequence token. .. note:: When building a sequence using special tokens, this is not the token
The end of sequence token. .. note:: When building a sequence using special tokens, this is not the token
that is used for the end of sequence. The token used is the :obj:`sep_token`.
that is used for the end of sequence. The token used is the :obj:`sep_token`.
unk_token (:obj:`str`, `optional`, defaults to :obj:`"<unk>"`):
unk_token (:obj:`str`, `optional`, defaults to :obj:`"<unk>"`):
...
...
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