npm i toxe
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",
]);
npm i toxe
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",
]);