create_sets: Create training and test set from a corpus

View source: R/text_analysis_patrick.R

create_setsR Documentation

Create training and test set from a corpus

Description

Create training and test set from a corpus

Usage

create_sets(the_corpus, size, seed)

Arguments

the_corpus

The text corpus to split

size

Size of the training set (must be smaller than number of documents in the corpus)

seed

Seed for randomization to ensure replicability


gidonc/durhamevp documentation built on April 8, 2022, 10:31 a.m.