corpustools.corpus.io.text_ilg.load_directory_ilg(corpus_name, path, annotation_types, feature_system_path=None, stop_check=None, call_back=None)[source]

Loads a directory of interlinear gloss text files


corpus_name : str

Name of corpus

path : str

Path to directory of text files

annotation_types : list of AnnotationType

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

feature_system_path : str, optional

File path of FeatureMatrix binary to specify segments

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



Corpus containing Discourses corresponding to the text files