encode-method: Encode corpus (CWB import).

Description Usage Arguments

Description

This is a wrapper for the cwb-encode and cwb-make command line tools. The calls are generated and executed (via a system call).

Usage

1
2
3
4
5
6
7
8
9
encode(.Object, ...)

## S4 method for signature 'character'
encode(.Object, corpus = "FOO",
  registry = Sys.getenv("CORPUS_REGISTRY"), sAttributes, embedding = "0",
  encoding = "utf8", xml = TRUE, exec = TRUE, verbose = TRUE, ...)

## S4 method for signature 'regions'
encode(.Object, filename = NULL, verbose = TRUE)

Arguments

.Object

a character vector

...

further parameters (not passed)

corpus

the corpus name

registry

the directory of the CWB registry

sAttributes

a list, use sAttributes-method

embedding

levels of embedding elements to allow for

encoding

encoding, passed into cwb-encode

xml

whether files are XML

exec

logical, whether to execute commands

verbose

defaults to TRUE

filename

a filename


PolMine/ctk documentation built on May 8, 2019, 3:20 a.m.