mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
Fix 'dictionnary' typo (#1511)
This commit is contained in:
@ -85,7 +85,7 @@ class BPE(Model):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
vocab (:obj:`Dict[str, int]`, `optional`):
|
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`):
|
merges (:obj:`List[Tuple[str, str]]`, `optional`):
|
||||||
A list of pairs of tokens (:obj:`Tuple[str, str]`) :obj:`[("a", "b"),...]`
|
A list of pairs of tokens (:obj:`Tuple[str, str]`) :obj:`[("a", "b"),...]`
|
||||||
@ -340,7 +340,7 @@ class WordLevel(Model):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
vocab (:obj:`str`, `optional`):
|
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`):
|
unk_token (:obj:`str`, `optional`):
|
||||||
The unknown token to be used by the model.
|
The unknown token to be used by the model.
|
||||||
@ -466,7 +466,7 @@ class WordPiece(Model):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
vocab (:obj:`Dict[str, int]`, `optional`):
|
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`):
|
unk_token (:obj:`str`, `optional`):
|
||||||
The unknown token to be used by the model.
|
The unknown token to be used by the model.
|
||||||
|
@ -226,7 +226,7 @@ impl PyModel {
|
|||||||
///
|
///
|
||||||
/// Args:
|
/// Args:
|
||||||
/// vocab (:obj:`Dict[str, int]`, `optional`):
|
/// 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`):
|
/// merges (:obj:`List[Tuple[str, str]]`, `optional`):
|
||||||
/// A list of pairs of tokens (:obj:`Tuple[str, str]`) :obj:`[("a", "b"),...]`
|
/// A list of pairs of tokens (:obj:`Tuple[str, str]`) :obj:`[("a", "b"),...]`
|
||||||
@ -530,7 +530,7 @@ impl PyBPE {
|
|||||||
///
|
///
|
||||||
/// Args:
|
/// Args:
|
||||||
/// vocab (:obj:`Dict[str, int]`, `optional`):
|
/// 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`):
|
/// unk_token (:obj:`str`, `optional`):
|
||||||
/// The unknown token to be used by the model.
|
/// The unknown token to be used by the model.
|
||||||
@ -701,7 +701,7 @@ impl PyWordPiece {
|
|||||||
///
|
///
|
||||||
/// Args:
|
/// Args:
|
||||||
/// vocab (:obj:`str`, `optional`):
|
/// 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`):
|
/// unk_token (:obj:`str`, `optional`):
|
||||||
/// The unknown token to be used by the model.
|
/// The unknown token to be used by the model.
|
||||||
|
@ -22,7 +22,7 @@ const versionMapping = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Dictionnary language name to Label
|
// Dictionary language name to Label
|
||||||
const languageName = {
|
const languageName = {
|
||||||
"rust": "Rust",
|
"rust": "Rust",
|
||||||
"python": "Python",
|
"python": "Python",
|
||||||
|
Reference in New Issue
Block a user