Skip to content

Commit

Permalink
Fix 'dictionnary' typo (#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
nprisbrey authored Jun 11, 2024
1 parent 88f51fe commit 1ff56c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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

0 comments on commit 1ff56c0

Please sign in to comment.