compute_prob

aligner.multiprocessing.compute_prob(i, nnet_dir, egs_dir, model_path, num_jobs)[source]

Multiprocessing function that computes the current log probability of the iteration

See:

for more details on the Kaldi binary this runs.

Also see https://github.com/kaldi-asr/kaldi/blob/master/egs/wsj/s5/steps/nnet2/train_pnorm_multisplice2.sh for the original bash script that this function was based on.

Parameters:
i : int

Number of the current iteration

nnet_dir : str

Directory of nnet training

egs_dir : str

Directory for training examples

model_path : str

Path to the current iteration’s model

num_jobs : int

The number of processes to use in calculation