load_directory_spelling¶
- corpustools.corpus.io.text_spelling.load_directory_spelling(corpus_name, path, annotation_types=None, support_corpus_path=None, ignore_case=False, stop_check=None, call_back=None)[source]¶
Loads a directory of orthographic texts
- Parameters
- corpus_namestr
Name of corpus
- pathstr
Path to directory of text files
- annotation_typeslist of AnnotationType, optional
List of AnnotationType specifying how to parse text files
- support_corpus_pathstr, optional
File path of corpus binary to load transcriptions from
- ignore_casebool, optional
Specifies whether lookups in the support corpus should ignore case
- stop_checkcallable, optional
Optional function to check whether to gracefully terminate early
- call_backcallable, optional
Optional function to supply progress information during the function
- Returns
- SpontaneousSpeechCorpus
Corpus containing Discourses corresponding to the text files