load_discourse_spelling¶
- corpustools.corpus.io.text_spelling.load_discourse_spelling(corpus_name, path, annotation_types=None, support_corpus_path=None, ignore_case=False, stop_check=None, call_back=None)[source]¶
Load a discourse from a text file containing running text of orthography
- Parameters
- corpus_namestr
Informative identifier to refer to corpus
- pathstr
Full path to text file
- annotation_typeslist of AnnotationType, optional
List of AnnotationType specifying how to parse text files
- lexiconCorpus, optional
Corpus to store Discourse word information
- support_corpus_pathstr, optional
Full path to a corpus to look up transcriptions from spellings in the text
- ignore_casebool, optional
Specify whether to ignore case when using spellings in the text to look up transcriptions
- stop_checkcallable, optional
Callable that returns a boolean for whether to exit before finishing full calculation
- call_backcallable, optional
Function that can handle strings (text updates of progress), tuples of two integers (0, total number of steps) and an integer for updating progress out of the total set by a tuple
- Returns
- Discourse
Discourse object generated from the text file