load_discourse_multiple_files

corpustools.corpus.io.multiple_files.load_discourse_multiple_files(corpus_name, word_path, phone_path, dialect, annotation_types=None, lexicon=None, feature_system_path=None, stop_check=None, call_back=None)[source]

Load a discourse from a text file containing interlinear glosses

Parameters
corpus_namestr

Informative identifier to refer to corpus

word_pathstr

Full path to words text file

phone_pathstr

Full path to phones text file

dialectstr

Currently, only ‘buckeye’

annotation_typeslist of AnnotationType, optional

List of AnnotationType specifying how to parse the glosses. Auto-generated based on dialect.

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 text file