pkg_add_corpus()
function will now create the cwb directories (registry and data directory) if necessary. Previously, these directories were required to exist before moving a corpus into a package, making it necessary to put dummy files into packages to keep R CMD build from issuing warnings and git from dropping these directories. Creating the directories on demand is a precondition for a CRAN release of data packages (#11).matrix
class will inherit from class array
. The new package version now takes into account that length(class(matrix(1:4,2,2)))
will return the value 2.pkgdown::build_site()
will generate a proper changelog page.s_atttribute_get_regions()
and s_attribute_get_values()
.corpus_install()
, using download.file()
replaces curl::curl_download()
for Windows because curl apparently is not able to process target filenames that include special characters.shortPathName()
is used.decode()
-method will turn a partition
into an Annotation
object from the NLP package.conll_get_regions()
-function will turn an CoNLL-style annotated token stream into a table with regions that can be encoded using s_attribute_encode()
.s_attribute_merge()
will merge two data.table
objects defining s-attributes, checking for overlaps.p_attribute_recode()
, s_attribute_recode()
, and supplementary s_attributed_files()
, and corpus_recode()
.tempdir()
is now wrapped as normalizePath(tempdir(), winslash = "/")
to avoid Problems on Windows, when different file separators may be used.file.path()
, the argument fsep
is “/” to prevent confusion of file seperators.corpus_copy()
is available to create a copy a corpus.s_attribute_encode
().cl_delete_corpus()
from RcppCWB is added to s_attribute_encode()
, so that newly added s-attributes can be used without restarting the R session.corpus_copy()
was defined (and documented) twice in a confusing manner. This is cleaned up.installed.packages()
were replaced to meet an advice of the CRAN team in the submission process.CorpusData$import_xml()
-methodCorpusData$add_corpus_positions()
(helper function .fn)download.file()
by install_corpus()
, if argument tarball is specified. This is a precondition for passing arguments to download password-protected corpora.