open Post Process
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
encoder Path
Path to the encoder model file.
decoder Path
Path to the decoder model file.
source Path
Path to the source SentencePiece model file.
target Path
Path to the target SentencePiece model file.
prefix
Prefix text passed to the model.
post Process Type
Type of the post process, one of the AILIA_SPEECH_POST_PROCESS_TYPE_* constants.