toxe
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

toxe

Install

npm i toxe

Usage

import { Toxe } from 'toxe';

const toxe = new Toxe('./spm.model', {
  bos: 1,
  eos: 2
});

const ids = await toxe.encode("a", [
  "a b",
  "a b c",
]);

Credits

https://github.com/JanKaul/sentencepiece

Readme

Keywords

none

Package Sidebar

Install

npm i toxe

Weekly Downloads

19

Version

1.1.3

License

Apache-2.0

Unpacked Size

1.53 MB

Total Files

9

Last publish

Collaborators

  • rjmacarthy