compose_g_carpa#

montreal_forced_aligner.transcription.multiprocessing.compose_g_carpa(in_carpa_path, temp_carpa_path, words_mapping, carpa_path, log_file)[source]#

Compose a large ARPA model into a G.carpa file

See also

arpa-to-const-arpa.cc

Relevant Kaldi binary

Parameters:
  • in_carpa_path (Path) – Input ARPA model path

  • temp_carpa_path (Path) – Temporary CARPA model path

  • words_mapping (dict[str, int]) – Words symbols mapping

  • carpa_path (Path) – Path to save output G.carpa

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