compose_lg#

montreal_forced_aligner.transcription.multiprocessing.compose_lg(dictionary_path, small_g_path, lg_path, log_file)[source]#

Compose an LG.fst

See also

fstbin/fsttablecompose.cc

Relevant Kaldi binary

fstbin/fstdeterminizestar.cc

Relevant Kaldi binary

fstbin/fstminimizeencoded.cc

Relevant Kaldi binary

fstbin/fstpushspecial.cc

Relevant Kaldi binary

Parameters:
  • dictionary_path (Path) – Path to a lexicon fst file

  • small_g_path (Path) – Path to the small language model’s G.fst

  • lg_path (Path) – Output path to LG.fst

  • log_file (TextIO) – Log file handler to output logging info to