@lenml/tokenizer-command_r_plus
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@lenml/tokenizer-command_r_plus

a tokenizer.

based on @lenml/tokenizers

Usage

import { fromPreTrained } from "@lenml/tokenizer-command_r_plus";

const tokenizer = fromPreTrained();
console.log(
    "encode()",
    tokenizer.encode("Hello, my dog is cute", null, {
        add_special_tokens: true,
    })
);
console.log(
    "_encode_text",
    tokenizer._encode_text("Hello, my dog is cute")
);

Full Tokenizer API

Complete api parameters and usage can be found in transformer.js tokenizers document

License

Apache-2.0

/@lenml/tokenizer-command_r_plus/

    Package Sidebar

    Install

    npm i @lenml/tokenizer-command_r_plus

    Weekly Downloads

    3

    Version

    1.0.4

    License

    Apache-2.0

    Unpacked Size

    112 MB

    Total Files

    10

    Last publish

    Collaborators

    • luke_zhang