Learn R Programming

polmineR (version 0.7.4)

encode: Encode CWB Corpus.

Description

Encode CWB Corpus.

Usage

encode(.Object, ...)

# S4 method for data.frame encode(.Object, name, pAttributes = "word", sAttributes = NULL, registry = Sys.getenv("CORPUS_REGISTRY"), indexedCorpusDir = NULL, verbose = TRUE)

# S4 method for data.table encode(.Object, corpus, sAttribute)

Arguments

.Object

a data.frame to encode

...

further parameters

name

name of the (new) CWB corpus

pAttributes

columns of .Object with tokens (such as word/pos/lemma)

sAttributes

columns of .Object that will be encoded as structural attributes

registry

path to the corpus registry

indexedCorpusDir

directory where to create directory for indexed corpus files

verbose

logical, whether to be verbose

corpus

the name of the CWB corpus

sAttribute

a single s-attribute