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
b0f1c0ee
Unverified
Commit
b0f1c0ee
authored
Oct 29, 2020
by
Sylvain Gugger
Committed by
GitHub
Oct 29, 2020
Browse files
Document tokenizer_class in configurations (#8152)
parent
969859d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/transformers/configuration_utils.py
src/transformers/configuration_utils.py
+2
-0
No files found.
src/transformers/configuration_utils.py
View file @
b0f1c0ee
...
@@ -134,6 +134,8 @@ class PretrainedConfig(object):
...
@@ -134,6 +134,8 @@ class PretrainedConfig(object):
Parameters linked to the tokenizer
Parameters linked to the tokenizer
- **tokenizer_class** (:obj:`str`, `optional`) -- The name of the associated tokenizer class to use (if none is
set, will use the tokenizer associated to the model by default).
- **prefix** (:obj:`str`, `optional`) -- A specific prompt that should be added at the beginning of each text
- **prefix** (:obj:`str`, `optional`) -- A specific prompt that should be added at the beginning of each text
before calling the model.
before calling the model.
- **bos_token_id** (:obj:`int`, `optional`)) -- The id of the `beginning-of-stream` token.
- **bos_token_id** (:obj:`int`, `optional`)) -- The id of the `beginning-of-stream` token.
...
...
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