process_async: Process a text with NLPipe

Description Usage Arguments Value Examples

Description

For instructions for setting up an NLPipe server, see https://github.com/vanatteveldt/nlpipe

Usage

1
2
process_async(module, texts, server = getOption("nlpiper.server", default =
  "http://localhost:5001"), ids = NULL, as_ascii = F)

Arguments

module

Name of the NLPipe module to call (e.g. test_upper, corenlp_lemmatize)

texts

Texts to process

server

NLPipe server or local folder (default: localhost:5001)

ids

optional explicit ids

as_ascii

if TRUE, force convert text to ascii before processing

Value

IDs of the tasks

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
## setup corenlp, e.g. run corenlp docker.
## For instructions see  <https://github.com/vanatteveldt/nlpipe>

## start process
task_id = nlpiper::process_async("corenlp_lemmatize", c("This is an example.", "This as well."))

## check status
nlpiper::status("corenlp_lemmatize", ids = task_id)

## retrieve results
nlpiper::result('corenlp_lemmatize', ids = task_id, format = 'csv')

## End(Not run)

vanatteveldt/nlpiper documentation built on May 3, 2019, 2:59 p.m.