ExportTextGridProcessWorker#
- class montreal_forced_aligner.alignment.multiprocessing.ExportTextGridProcessWorker(db_string, for_write_queue, return_queue, stopped, finished_adding, export_frame_shift, cleanup_textgrids, clitic_marker, output_directory, output_format, include_original_text)[source]#
Bases:
Process
Multiprocessing worker for exporting TextGrids
See also
CorpusAligner.collect_alignments
Main function that runs this worker in parallel
- Parameters:
for_write_queue (
Queue
) – Input queue of files to exportstopped (
Event
) – Stop check for processingfinished_adding (
Event
) – Input signal that all jobs have been added and no more new ones will come intextgrid_errors (dict[str, str]) – Dictionary for storing errors encountered
arguments (
ExportTextGridArguments
) – Arguments to pass to the TextGrid export functionexported_file_count (
Counter
) – Counter for exported files