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_name : str
Informative identifier to refer to corpus
word_path : str
Full path to words text file
phone_path : str
Full path to phones text file
dialect : str
One of ‘buckeye’ or ‘timit’
annotation_types : list of AnnotationType, optional
List of AnnotationType specifying how to parse the glosses. Auto-generated based on dialect.
lexicon : Corpus, optional
Corpus to store Discourse word information
feature_system_path : str
Full path to pickled FeatureMatrix to use with the Corpus
stop_check : callable or None
Optional function to check whether to gracefully terminate early
call_back : callable or None
Optional function to supply progress information during the loading
Returns: Discourse
Discourse object generated from the text file