mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
13 lines
361 B
JavaScript
13 lines
361 B
JavaScript
const native = require("./native");
|
|
|
|
class Tokenizer extends native.tokenizer_Tokenizer {
|
|
static fromString = native.tokenizer_Tokenizer_from_string;
|
|
static fromFile = native.tokenizer_Tokenizer_from_file;
|
|
static fromPretrained = native.tokenizer_Tokenizer_from_pretrained;
|
|
}
|
|
|
|
module.exports = {
|
|
AddedToken: native.tokenizer_AddedToken,
|
|
Tokenizer,
|
|
};
|