Skip to main content
Ctrl+K

Montreal Forced Aligner

  • Getting started
  • User guide
  • API reference
  • Changelog
  • Pretrained MFA models
  • GitHub
  • PyPI
  • PyPI
  • Getting started
  • User guide
  • API reference
  • Changelog
  • Pretrained MFA models
  • GitHub
  • PyPI
  • PyPI
Ctrl+K

Section Navigation

  • Core functionality
    • Corpora
      • AcousticCorpus
      • TextCorpus
      • FileData
      • UtteranceData
    • Database
      • Dictionary
      • Dialect
      • Word
      • Pronunciation
      • Phone
      • Grapheme
      • File
      • TextFile
      • SoundFile
      • Speaker
      • Utterance
      • WordInterval
      • PhoneInterval
      • CorpusWorkflow
      • PhonologicalRule
      • RuleApplication
      • Job
      • M2MSymbol
      • M2M2Job
      • Word2Job
    • Pronunciation dictionaries
      • Main classes
        • MultispeakerDictionary
      • Helper classes and functions
        • DictionaryModel
        • DictionaryMixin
        • TemporaryDictionaryMixin
        • MultispeakerDictionaryMixin
      • Training pronunciation probabilities
        • DictionaryTrainer
    • Acoustic models
      • AcousticModel
      • Training acoustic models
        • TrainableAligner
        • MonophoneTrainer
        • TriphoneTrainer
        • LdaTrainer
        • SatTrainer
        • PronunciationProbabilityTrainer
      • Helper functionality
        • AcousticModelTrainingMixin
        • MonoAlignEqualFunction
        • TreeStatsFunction
        • ConvertAlignmentsFunction
        • LdaAccStatsFunction
        • CalcLdaMlltFunction
        • AccStatsTwoFeatsFunction
        • TransitionAccFunction
        • MonoAlignEqualArguments
        • TreeStatsArguments
        • ConvertAlignmentsArguments
        • LdaAccStatsArguments
        • CalcLdaMlltArguments
        • AccStatsTwoFeatsArguments
        • TransitionAccArguments
    • Grapheme-to-Phoneme (G2P) models
      • G2PModel
      • Training G2P models
        • PyniniTrainer
        • PyniniValidator
        • PhonetisaurusTrainer
        • PyniniTrainerMixin
        • PhonetisaurusTrainerMixin
      • Helper functionality
        • G2PMixin
        • G2PTopLevelMixin
        • G2PTrainer
        • RandomStartWorker
        • RandomStart
    • Language models
      • LanguageModel
      • Training language models
        • MfaLmCorpusTrainer
        • MfaLmDictionaryCorpusTrainer
        • MfaLmArpaTrainer
      • Helper functionality
        • LmTrainerMixin
        • LmCorpusTrainerMixin
        • LmDictionaryCorpusTrainerMixin
        • TrainSpeakerLmFunction
        • TrainSpeakerLmArguments
    • Ivector extraction
      • IvectorExtractorModel
      • Training ivector extractors
        • IvectorTrainer
        • DubmTrainer
        • TrainableIvectorExtractor
      • Training functionality
        • IvectorModelTrainingMixin
        • GmmGselectFunction
        • GmmGselectArguments
        • GaussToPostFunction
        • GaussToPostArguments
        • AccGlobalStatsFunction
        • AccGlobalStatsArguments
        • AccIvectorStatsFunction
        • AccIvectorStatsArguments
  • Workflows
    • Alignment
      • Alignment classes
        • CorpusAligner
        • AdaptingAligner
        • PretrainedAligner
      • Helper functionality
        • AlignMixin
        • AlignFunction
        • FineTuneFunction
        • CompileTrainGraphsFunction
        • AccStatsFunction
        • AlignmentExtractionFunction
        • ExportTextGridProcessWorker
        • PhoneConfidenceFunction
        • AlignArguments
        • AccStatsArguments
        • CompileTrainGraphsArguments
        • AlignmentExtractionArguments
        • ExportTextGridArguments
        • FineTuneArguments
        • PhoneConfidenceArguments
    • Validation
      • Validators
        • TrainingValidator
        • PretrainedValidator
        • DictionaryValidator
      • Helper functions
        • ValidationMixin
    • Generating dictionaries
      • Dictionary generation
        • PyniniCorpusGenerator
        • PyniniWordListGenerator
      • Helper functionality
        • PyniniGenerator
        • Rewriter
        • RewriterWorker
    • Transcription
      • Transcriber
        • Transcriber
      • Helper functions
        • TranscriberMixin
        • CreateHclgFunction
        • CreateHclgArguments
        • DecodeFunction
        • DecodeArguments
        • LmRescoreFunction
        • LmRescoreArguments
        • CarpaLmRescoreFunction
        • CarpaLmRescoreArguments
        • InitialFmllrFunction
        • InitialFmllrArguments
        • FmllrRescoreFunction
        • FmllrRescoreArguments
        • FinalFmllrFunction
        • FinalFmllrArguments
    • Segmentation
      • Segmenter
        • VadSegmenter
        • TranscriptionSegmenter
      • Helper functions
        • SegmentVadFunction
        • SegmentVadArguments
        • SegmentVadFunction
        • SegmentVadArguments
        • get_initial_segmentation
        • merge_segments
        • segment_utterance_transcript
        • segment_utterance_vad
    • Speaker diarization
      • Speaker Diarization
        • SpeakerDiarizer
      • Helper functions
        • PldaClassificationFunction
        • PldaClassificationArguments
        • ComputeEerFunction
        • ComputeEerArguments
        • SpeechbrainEmbeddingFunction
        • SpeechbrainClassificationFunction
        • SpeechbrainArguments
        • cluster_matrix
    • Tokenizers
      • TokenizerModel
      • Training tokenizer models
        • TokenizerTrainer
      • Corpus tokenizer
        • CorpusTokenizer
        • TokenizerValidator
      • Helper functionality
        • TokenizerRewriter
        • TokenizerArguments
        • TokenizerFunction
        • SanitizeFunction
        • SplitWordsFunction
  • Managing MFA servers
    • configure_pg
    • initialize_server
    • check_databases
    • start_server
    • stop_server
    • delete_server
  • Helper
    • Abstract Base Classes
    • KaldiFunction
    • MfaModel
    • MfaWorker
    • TopLevelMfaWorker
    • TrainerMixin
    • TemporaryDirectoryMixin
    • DatabaseMixin
    • AdapterMixin
    • ExporterMixin
    • FileExporterMixin
    • ModelExporterMixin
    • Archive
    • MFA configuration
    • MfaConfiguration
    • MfaProfile
    • get_temporary_directory
    • generate_config_path
    • generate_command_history_path
    • load_command_history
    • update_command_history
    • Data classes
    • MfaArguments
    • TextFileType
    • SoundFileType
    • SoundFileInformation
    • PhoneSetType
    • WordData
    • WordType
    • PhoneType
    • WorkflowType
    • DatabaseImportData
    • PronunciationProbabilityCounter
    • CtmInterval
    • Exception classes
    • MFAError
    • SoxError
    • G2PError
    • ConfigError
    • LMError
    • LanguageModelNotFoundError
    • ModelExtensionError
    • ThirdpartyError
    • TrainerError
    • ModelError
    • CorpusError
    • ModelLoadError
    • CorpusReadError
    • ArgumentError
    • AlignmentExportError
    • NoSuccessfulAlignments
    • KaldiProcessingError
    • TextParseError
    • TextGridParseError
    • DictionaryError
    • NoDefaultSpeakerDictionaryError
    • DictionaryPathError
    • DictionaryFileError
    • FileArgumentNotFoundError
    • PretrainedModelNotFoundError
    • MultipleModelTypesFoundError
    • ModelTypeNotSupportedError
    • PronunciationAcousticMismatchError
    • RootDirectoryError
    • Helper functions
    • comma_join
    • make_safe
    • make_scp_safe
    • load_scp
    • load_scp_safe
    • score_wer
    • edit_distance
    • output_mapping
    • compare_labels
    • overlap_scoring
    • align_phones
    • Textgrid utilities
    • process_ctm_line
    • export_textgrid
    • construct_output_path
    • output_textgrid_writing_errors
    • Utility functions
    • Counter
    • run_kaldi_function
    • thirdparty_binary
    • log_kaldi_errors
    • parse_logs
  • MFA API
  • Workflows
  • Transcription
  • Helper functions
  • CreateHclgFunction

CreateHclgFunction#

class montreal_forced_aligner.transcription.multiprocessing.CreateHclgFunction(args)[source]#

Bases: KaldiFunction

Create HCLG.fst file

See also

Transcriber.create_hclgs

Main function that calls this function in parallel

Transcriber.create_hclgs_arguments

Job method for generating arguments for this function

bin/add-self-loops.cc

Relevant Kaldi binary

OpenFst fstconvert source

Relevant OpenFst binary

Parameters:

args (CreateHclgArguments) – Arguments for the function

previous

TranscriberMixin

next

CreateHclgArguments

© Copyright 2018-2025, Montreal Corpus Tools.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.16.1.