load_directory_textgrid¶
- corpustools.corpus.io.pct_textgrid.load_directory_textgrid(corpus_name, path, annotation_types, feature_system_path=None, support_corpus_path=None, stop_check=None, call_back=None)[source]¶
Loads a directory of TextGrid files
- Parameters
- corpus_namestr
Name of corpus
- pathstr
Path to directory of TextGrid files
- annotation_typeslist of AnnotationType
List of AnnotationType specifying how to parse the TextGrids. Can be generated through
inspect_discourse_textgrid
.- feature_system_pathstr, optional
File path of FeatureMatrix binary to specify segments
- stop_checkcallable or None
Optional function to check whether to gracefully terminate early
- call_backcallable or None
Optional function to supply progress information during the loading
- Returns
- SpontaneousSpeechCorpus
Corpus containing Discourses corresponding to the TextGrid files