This is a wrapper for the cwb-encode
and cwb-make
command line tools.
The calls are generated and executed (via a system call).
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)
|
.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 |
xml |
whether files are XML |
exec |
logical, whether to execute commands |
verbose |
defaults to TRUE |
filename |
a filename |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.