KaldiFunction#

class montreal_forced_aligner.abc.KaldiFunction(args)[source]#

Bases: object

Abstract class for running Kaldi functions

check_call(proc)[source]#

Check whether a subprocess successfully completed

Parameters:

proc (subprocess.Popen) – Subprocess to check

Raises:

KaldiProcessingError – If there was an error running the subprocess

run()[source]#

Run the function, calls subclassed object’s _run with error handling