PipeCoreNLP: Pipe using Stanford CoreNLP.

Description Usage Format Fields Methods

Description

Pipe using Stanford CoreNLP.

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Fields

dir

a pipe directory, different processing stages of the corpus will be kept in subdirectories of this directory

time

a data.frame with information that different processing stages have consumed

threads

an integer, the number of cores to use

#' @section Arguments:

metadata

a named list with xpath expressions that is passed into the xmlToDT function to extract metadata from XML documents

sourceDir

a subdirectory of the pipeDir where files to be processed are located

targetDir

a subdirectory of the pipeDir where processed output is stored

cols

columns that will serve as input to generate p- and s-attributes

corpus

name of the CWB corpus to create

Methods

$corenlp(sourceDir = "tsv", targetDir = "ndjson")

Use Stanford CoreNLP for annotation.

$ndjsonToDf(sourceDir = "ndjson", targetDir = "tsv")

Convert CoreNLP json output to csv.


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