MyNixOS website logo
Description

Stanford 'CoreNLP' Annotation Client.

Stanford 'CoreNLP' annotation client. Stanford 'CoreNLP' <https://stanfordnlp.github.io/CoreNLP/index.html> integrates all NLP tools from the Stanford Natural Language Processing Group, including a part-of-speech (POS) tagger, a named entity recognizer (NER), a parser, and a coreference resolution system, and provides model files for the analysis of English. More information can be found in the README.

NLPclient

Stanford CoreNLP

Stanford CoreNLP is a Java suite for Natural Language Processing (NLP). In its new version it includes a web API server. The NLPclient package provides client access to the CoreNLP server. In the following we provide information on how to set up and to use NLPclient, for more information about the CoreNLP Server we refer to https://stanfordnlp.github.io/CoreNLP/corenlp-server.html.

Install NLPclient

To install NLPclient from CRAN, execute:

install.packages("NLPclient")

For NLPclient to do anything useful CoreNLP server has to be installed. CoreNLP server can either be run by starting the server with Java directly or by running the server under docker. For running CoreNLP server with Java we refer to the CoreNLP Server documentation.

Install docker

The RSelenium documentation provides a nice introduction on the usage of docker which also gives guidance on the docker installation.

Run CoreNLP server with docker

We recommend to use the docker image schwe/corenlp from https://hub.docker.com/r/schwe/corenlp it is derived from frnkenstien/corenlp but allows to insert arguments into server startup and to specify default properties. The image can be obtained by

docker pull schwe/corenlp

To start the CoreNLP server a command similar to

docker run -p 9000:9000 --name coreNLP --rm -i -t schwe/corenlp

can be used, this will also download the docker image if necessary. On Linux it might by necessary to run docker with sudo or to setup docker to be manageable a non-root user.

The function nlp_server_docker_run can be used to create the run command from within R.

nlp_server_docker_run(memory = "-mx4g", threads = 2L)
#R> "docker run -p 9000:9000 --name coreNLP --env PREARGS='-mx4g' --env SUBARGS='-threads 2' --rm -i -t schwe/corenlp"

nlp_server_docker_run returns the run command as a string, to run the server the command has to be copied into the terminal (on Unix) or the docker toolbox (on Windows).

Metadata

Version

1.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows