Skip to main content
Version: 0.7.x

Interface: TokenizerProps

Defined in: packages/react-native-executorch/src/types/tokenizer.ts:9

Parameters for initializing and configuring a Tokenizer instance.

Properties

preventLoad?

optional preventLoad: boolean

Defined in: packages/react-native-executorch/src/types/tokenizer.ts:20

Boolean that can prevent automatic model loading (and downloading the data if you load it for the first time) after running the hook.


tokenizer

tokenizer: object

Defined in: packages/react-native-executorch/src/types/tokenizer.ts:15

Object containing:

tokenizerSource - A ResourceSource that specifies the location of the tokenizer.

tokenizerSource

tokenizerSource: ResourceSource