call_frog: Call a frog (Dutch lemmatizer and dependency parser) instance...

Description Usage Arguments Details Value

View source: R/frog.r

Description

See http://ilk.uvt.nl/frog/ To install frog and run as daemon (assuming debian/ubuntu), run: $ sudo apt-get install frog frogdata ucto $ frog -S 9772

Usage

1
call_frog(text, host = "localhost", port = 9772, verbose = T)

Arguments

text:

The text(s) to parse

host:

The hostname for the frog server

port:

The port the frog server is listening on

verbose:

If true, output a message for each document

Details

A separate call to frog is made for each text in the text input vector.

Note that if something is wrong, it is quite possible that this function will totall hang your R session as it is waiting for output on the socket, so use with caution!

Value

a data frame of tokens with columns for lemma, pos, etc


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