load_corpus_csv

corpustools.corpus.io.csv.load_corpus_csv(corpus_name, path, delimiter, annotation_types=None, feature_system_path=None, stop_check=None, call_back=None)[source]

Load a corpus from a column-delimited text file

Parameters
corpus_namestr

Informative identifier to refer to corpus

pathstr

Full path to text file

delimiterstr

Character to use for spliting lines into columns

annotation_typeslist of AnnotationType, optional

List of AnnotationType specifying how to parse text files

feature_system_pathstr

Full path to pickled FeatureMatrix to use with the Corpus

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
Corpus

Corpus object generated from the text file