loadFiles

fun loadFiles(modelPath: String? = null, vocabPath: String? = null, mergePath: String? = null, dictionaryPath: String? = null)

Loads the resource files required by the tokenizer.

The required files depend on the tokenizer type. See the description of each AILIA_TOKENIZER_TYPE_* constant.

Parameters

modelPath

Path to the SentencePiece model file (spm file), or null if not required.

vocabPath

Path to the vocabulary file, or null if not required.

mergePath

Path to the merge file, or null if not required.

dictionaryPath

Path to the MeCab dictionary directory, or null if not required.