Skip to content

Commit

Permalink
Update tokenizer example documentation (Closes #245)
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Aug 13, 2023
1 parent 2f70a5d commit d7a7343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tokenizers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* ```javascript
* import { AutoTokenizer } from '@xenova/transformers';
*
* let tokenizer = await AutoTokenizer.from_pretrained('bert-base-uncased');
* let tokenizer = await AutoTokenizer.from_pretrained('Xenova/bert-base-uncased');
* let { input_ids } = await tokenizer('I love transformers!');
* // Tensor {
* // data: BigInt64Array(6) [101n, 1045n, 2293n, 19081n, 999n, 102n],
Expand Down Expand Up @@ -3464,7 +3464,7 @@ export class MarianTokenizer extends PreTrainedTokenizer {
* The chosen tokenizer class is determined by the type specified in the tokenizer config.
*
* @example
* let tokenizer = await AutoTokenizer.from_pretrained('bert-base-uncased');
* let tokenizer = await AutoTokenizer.from_pretrained('Xenova/bert-base-uncased');
*/
export class AutoTokenizer {
static TOKENIZER_CLASS_MAPPING = {
Expand Down

0 comments on commit d7a7343

Please sign in to comment.