SampleCorpus: SampleCorpus

Description Usage Arguments Format Value Author(s) See Also

Description

SampleCorpus Encapsulates the command to sample a Corpus object.

Usage

1

Arguments

x

Corpus or Token Object

corpusStudio

CorpusStudio object

name

Character string containing the name to assign to the Token object.

n

Numeric. If n <= 1, the proportion of 'unit' to sample. If n>1, the number of 'unit' to sample.

stratify

Logical. Applies to Corpus objects with with two or more documents. If TRUE, stratified sampling will occur within each document; otherwise, samples will be taken from a single combined document. Default is TRUE

replace

Logical. If TRUE, samples will be taken with replacement. Default is FALSE.

seed

Numeric. Seed for sampling reproducibility. Default is NULL

Format

An object of class R6ClassGenerator of length 24.

Value

Token object

Author(s)

John James, jjames@dataScienceSalon.org

See Also

Other FileStudio Command Classes: CopyFileSet, MoveFileSet, ReadCorpus, RepairFileSet, Source, WriteCorpus


DecisionScients/NLPStudio documentation built on May 15, 2019, 12:51 p.m.