installation stanford corenlp - uni-tuebingen.dekeberle/nlptools... · manual - download libraries...

12
Stanford CoreNLP - Installation - Madeeswaran Kannan

Upload: others

Post on 24-Jan-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Stanford CoreNLP - Installation

- Madeeswaran Kannan

Page 2: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Prerequisites

Page 3: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

● SDK - Java 1.8● IDE - Eclipse● Maven (optional/pre-installed)

Page 4: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Install SDKWebpage -

http://www.oracle.com/technetwork/java/j

avase/downloads/jdk8-downloads-213315

1.html

(Java SE Development Kit 8u151)

Download the appropriate installer for

your Operating System (x86 - 32-bit; x64 -

64-bit)

Run installer - Select “Development Tools”

and “Public JRE”

Page 5: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Install IDE

Webpage -

https://www.eclipse.org/downloads/eclips

e-packages/?osType=win32

Download the Eclipse installer for your

Operating System

Run the installer - Select “Eclipse IDE for

Java Developers”

Page 6: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Launch Eclipse - You’ll see something similar to this (probably in a “Light” color scheme)

Page 7: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Installing CoreNLP Libraries

Page 8: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Install - CoreNLP

● Two methods: Manual installation vs Maven

○ Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

■ Not recommended

■ Manual file management

■ Version conflicts

■ Dependency hell

Page 9: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Install - CoreNLP

● Maven - De-facto build tool for Java development

○ Manages project compilation and packaging

○ Automatically downloads libraries from a central repository

○ Support for versioning of libraries

○ Automatic dependency management

Page 10: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Create Maven Project

● File > New Project > Other… >

Maven Project

● Maven template/archetype:

Quickstart

● Group ID: Package name (e.g:

com.nlptools)

● Artifact ID: Project name (e.g:

corenlp)

Page 11: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Add CoreNLP Libraries

● Open pom.xml > Switch to “pom.xml” bottom tab

● Add the following inside <dependencies> and save:<dependency> <groupId>edu.stanford.nlp </groupId> <artifactId> stanford-corenlp </artifactId> <version>3.8.0</version></dependency><dependency> <groupId>edu.stanford.nlp </groupId> <artifactId> stanford-corenlp </artifactId> <version>3.8.0</version> <classifier> models-english </classifier></dependency>

● Eclipse will download and configure the libraries

Models for other languages can be added by changing “models-english” to “models-german”, etc. Projects can use multiple language models at the same time.

Page 12: Installation Stanford CoreNLP - uni-tuebingen.dekeberle/NLPTools... · Manual - Download libraries separately and add them to your Eclipse project’s Build Path as External JARs

Next: Basic Usage