From 1ff56c0c70b045f0cd82da1af9ac08cd4c7a6f9f Mon Sep 17 00:00:00 2001 From: Nathan Date: Tue, 11 Jun 2024 06:43:47 -0700 Subject: [PATCH] Fix 'dictionnary' typo (#1511) --- bindings/python/py_src/tokenizers/models/__init__.pyi | 6 +++--- bindings/python/src/models.rs | 6 +++--- docs/source/_static/js/custom.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bindings/python/py_src/tokenizers/models/__init__.pyi b/bindings/python/py_src/tokenizers/models/__init__.pyi index 955b9a163..f68625390 100644 --- a/bindings/python/py_src/tokenizers/models/__init__.pyi +++ b/bindings/python/py_src/tokenizers/models/__init__.pyi @@ -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"),...]` @@ -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. @@ -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. diff --git a/bindings/python/src/models.rs b/bindings/python/src/models.rs index 846bb61c0..bffa1bc21 100644 --- a/bindings/python/src/models.rs +++ b/bindings/python/src/models.rs @@ -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"),...]` @@ -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. @@ -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. diff --git a/docs/source/_static/js/custom.js b/docs/source/_static/js/custom.js index bb218c6d7..3459f2128 100644 --- a/docs/source/_static/js/custom.js +++ b/docs/source/_static/js/custom.js @@ -22,7 +22,7 @@ const versionMapping = { } }; -// Dictionnary language name to Label +// Dictionary language name to Label const languageName = { "rust": "Rust", "python": "Python",