Runs the CoreNLP annotators for the text contained in a given file.
The details for which annotators to run and how to run them are
specified in the properties file loaded in via the initCoreNLP
function (which must be run prior to any annotation).
annotateFile(file, format = c("obj", "xml", "text"), outputFile = NA,
includeXSL = FALSE)
a string giving the location of the file to be loaded.
the desired output format. Option obj
, the default,
returns an R object of class annotation
and will
likely be the desired choice for users loading the output
into R. The xml
and text
exist primarily for
saving the files on the disk.
character string indicating where to put the output. If set to NA, the output will be returned by the function.
boolean. Whether the xml style sheet should be included
in the output. Only used if format is xml
and
outputFile is not NA
.