compose_g#

montreal_forced_aligner.transcription.multiprocessing.compose_g(arpa_path, words_path, g_path, log_file)[source]#

Create G.fst from an ARPA formatted language model

See also

arpa2fst.cc

Relevant Kaldi binary

Parameters:
  • arpa_path (Path) – Path to ARPA file

  • words_path (Path) – Path to words symbols file

  • g_path (Path) – Path to output G.fst file

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