untokenize: Reconstruct original texts

View source: R/untokenize.r

untokenizeR Documentation

Reconstruct original texts

Description

If the tCorpus was created with remember_spaces = T, you can rebuild the original texts.

Usage

untokenize(tc)

Arguments

tc

A tCorpus, created with create_tcorpus, with remember_spaces = TRUE

Value

A data.table with the text fields and meta fields as columns.

Examples

tc = create_tcorpus(sotu_texts, doc_column='id')
untokenize(tc)

corpustools documentation built on May 31, 2023, 8:45 p.m.