process: Process a text with NLPipe and wait for result

Description Usage Arguments Value Examples

View source: R/nlpiper.R

Description

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

Usage

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

Arguments

module

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

text

Text to process

server

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

format

The format to download results as (e.g. csv)

ids

optinal explicit ids

as_ascii

if TRUE, force convert text to ascii before processing

Value

The processed text

Examples

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

nlpiper::process("test_upper", "test")
nlpiper::process("corenlp_lemmatize", "This is an example.", format = 'csv')

## End(Not run)

vanatteveldt/nlpiper documentation built on March 21, 2018, 4:12 a.m.