export_corpus_csv¶
- corpustools.corpus.io.csv.export_corpus_csv(corpus, path, delimiter=',', trans_delimiter='.', syll_delimiter=None, variant_behavior=None)[source]¶
Save a corpus as a column-delimited text file
- Parameters
- corpusCorpus
Corpus to save to text file
- pathstr
Full path to write text file
- delimiterstr
Character to mark boundaries between columns. Defaults to ‘,’
- trans_delimiterstr
Character to mark boundaries in transcriptions. Defaults to ‘.’
- syll_delimiterstr, optional
Character to mark boundaries in syllables. Defaults to ‘None’. Only active when syllable exists.
- variant_behaviorstr, 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