Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "dictionnary" typo #1511

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions bindings/python/py_src/tokenizers/models/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class BPE(Model):

Args:
vocab (:obj:`Dict[str, int]`, `optional`):
A dictionnary of string keys and their ids :obj:`{"am": 0,...}`
A dictionary of string keys and their ids :obj:`{"am": 0,...}`

merges (:obj:`List[Tuple[str, str]]`, `optional`):
A list of pairs of tokens (:obj:`Tuple[str, str]`) :obj:`[("a", "b"),...]`
Expand Down Expand Up @@ -340,7 +340,7 @@ class WordLevel(Model):

Args:
vocab (:obj:`str`, `optional`):
A dictionnary of string keys and their ids :obj:`{"am": 0,...}`
A dictionary of string keys and their ids :obj:`{"am": 0,...}`

unk_token (:obj:`str`, `optional`):
The unknown token to be used by the model.
Expand Down Expand Up @@ -466,7 +466,7 @@ class WordPiece(Model):

Args:
vocab (:obj:`Dict[str, int]`, `optional`):
A dictionnary of string keys and their ids :obj:`{"am": 0,...}`
A dictionary of string keys and their ids :obj:`{"am": 0,...}`

unk_token (:obj:`str`, `optional`):
The unknown token to be used by the model.
Expand Down
6 changes: 3 additions & 3 deletions bindings/python/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl PyModel {
///
/// Args:
/// vocab (:obj:`Dict[str, int]`, `optional`):
/// A dictionnary of string keys and their ids :obj:`{"am": 0,...}`
/// A dictionary of string keys and their ids :obj:`{"am": 0,...}`
///
/// merges (:obj:`List[Tuple[str, str]]`, `optional`):
/// A list of pairs of tokens (:obj:`Tuple[str, str]`) :obj:`[("a", "b"),...]`
Expand Down Expand Up @@ -530,7 +530,7 @@ impl PyBPE {
///
/// Args:
/// vocab (:obj:`Dict[str, int]`, `optional`):
/// A dictionnary of string keys and their ids :obj:`{"am": 0,...}`
/// A dictionary of string keys and their ids :obj:`{"am": 0,...}`
///
/// unk_token (:obj:`str`, `optional`):
/// The unknown token to be used by the model.
Expand Down Expand Up @@ -701,7 +701,7 @@ impl PyWordPiece {
///
/// Args:
/// vocab (:obj:`str`, `optional`):
/// A dictionnary of string keys and their ids :obj:`{"am": 0,...}`
/// A dictionary of string keys and their ids :obj:`{"am": 0,...}`
///
/// unk_token (:obj:`str`, `optional`):
/// The unknown token to be used by the model.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const versionMapping = {
}
};

// Dictionnary language name to Label
// Dictionary language name to Label
const languageName = {
"rust": "Rust",
"python": "Python",
Expand Down