export_corpus_csv

corpustools.corpus.io.csv.export_corpus_csv(corpus, path, delimiter=', ', trans_delimiter='.', variant_behavior=None)[source]

Save a corpus as a column-delimited text file

Parameters:

corpus : Corpus

Corpus to save to text file

path : str

Full path to write text file

delimiter : str

Character to mark boundaries between columns. Defaults to ‘,’

trans_delimiter : str

Character to mark boundaries in transcriptions. Defaults to ‘.’

variant_behavior : str, optional

How to treat variants, ‘token’ will have a line for each variant, ‘column’ will have a single column for all variants for a word, and the default will not include variants in the output