Port of Huggingface's Tokenizer written in Rust for React Native. Only supports Android for now.
npm install @naveen521kk/react-native-tokenizer
See example for a full example.
import { encode } from '@naveen521kk/react-native-tokenizer';
// ...
// modelPath is the path to the model directory
const result = encode(modelPath, "Hello World!");
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library