openPostProcess

fun openPostProcess(encoderPath: String, decoderPath: String, sourcePath: String, targetPath: String, prefix: String, postProcessType: Int): Int

Opens the post process model files for error correction or translation of the recognition results.

Return

0 if successful, otherwise an error code.

Parameters

encoderPath

Path to the encoder model file.

decoderPath

Path to the decoder model file.

sourcePath

Path to the source SentencePiece model file.

targetPath

Path to the target SentencePiece model file.

prefix

Prefix text passed to the model.

postProcessType

Type of the post process, one of the AILIA_SPEECH_POST_PROCESS_TYPE_* constants.