load_discourse_ilg

corpustools.corpus.io.text_ilg.load_discourse_ilg(corpus_name, path, annotation_types, 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

path : str

Full path to text file

annotation_types : list of AnnotationType

List of AnnotationType specifying how to parse the glosses. Can be generated through inspect_discourse_ilg.

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