load_discourse_textgrid¶
- corpustools.corpus.io.pct_textgrid.load_discourse_textgrid(corpus_name, path, annotation_types, feature_system_path=None, support_corpus_path=None, stop_check=None, call_back=None)[source]¶
Load a discourse from a TextGrid file
- Parameters
- corpus_namestr
Informative identifier to refer to corpus
- pathstr
Full path to TextGrid file
- annotation_typeslist of AnnotationType
List of AnnotationType specifying how to parse the TextGrids. Can be generated through
inspect_discourse_textgrid
.- lexiconCorpus, optional
Corpus to store Discourse word information
- feature_system_pathstr
Full path to pickled FeatureMatrix to use with the Corpus
- 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
- Discourse
Discourse object generated from the TextGrid file