Skip to content
Stanford CoreNLP: A Java suite of core NLP tools.
Java Lex JavaScript Common Lisp Python Shell Other
Branch: master
Clone or download

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
classes Update .gitignore a bit Jan 21, 2014
data update regression test for dcoref Apr 14, 2020
doc Merge remote-tracking branch 'refs/remotes/origin/master' Jun 18, 2020
examples/sample-maven-project some helpful instructions Oct 25, 2018
gradle/wrapper Update to more recent gradle. Closes #190. Nov 20, 2016
itest/src/edu/stanford/nlp Write out a bit more about entity mentions partly as an example May 23, 2020
lib Merge branch 'master' of ssh://origin Dec 19, 2019
liblocal merge master in Apr 2, 2017
libsrc Merge branch 'master' of ssh://origin Dec 19, 2019
licenses store v2 and v3 of gpl Jul 8, 2016
scripts Convert 3class as well May 27, 2020
src/edu/stanford/nlp Merge remote-tracking branch 'refs/remotes/origin/master' Jun 18, 2020
test Merge remote-tracking branch 'refs/remotes/origin/master' Jun 18, 2020
.gitignore Update .gitignore a bit Jan 21, 2014
.travis.yml update travis Apr 21, 2020
CONTRIBUTING.md merge master in Apr 2, 2017
JavaNLP-core.eml working on some propernoun chain creation Jan 28, 2016
JavaNLP-core.iml working on some propernoun chain creation Jan 28, 2016
LICENSE.txt merge master in Apr 2, 2017
README.md Merge branch 'master' of ssh://origin May 5, 2020
RESOURCE-LICENSES license info for resources used Jan 3, 2018
build.gradle update version in build.gradle Apr 17, 2020
build.xml Fix this comment - these are the non-NER tests Apr 7, 2020
commonbuildjsp.xml Merge remote-tracking branch 'origin/master' Jun 11, 2014
gradlew Update to more recent gradle. Closes #190. Nov 20, 2016
gradlew.bat Update to more recent gradle. Closes #190. Nov 20, 2016
module_core.xml added modules Apr 2, 2017
pom-java-11.xml fix java 11 pom issues Apr 17, 2020
pom.xml fix pom issues Apr 17, 2020

README.md

Stanford CoreNLP

Build Status Maven Central Twitter

Stanford CoreNLP provides a set of natural language analysis tools written in Java. It can take raw human language text input and give the base forms of words, their parts of speech, whether they are names of companies, people, etc., normalize and interpret dates, times, and numeric quantities, mark up the structure of sentences in terms of phrases or word dependencies, and indicate which noun phrases refer to the same entities. It was originally developed for English, but now also provides varying levels of support for (Modern Standard) Arabic, (mainland) Chinese, French, German, and Spanish. Stanford CoreNLP is an integrated framework, which makes it very easy to apply a bunch of language analysis tools to a piece of text. Starting from plain text, you can run all the tools with just two lines of code. Its analyses provide the foundational building blocks for higher-level and domain-specific text understanding applications. Stanford CoreNLP is a set of stable and well-tested natural language processing tools, widely used by various groups in academia, industry, and government. The tools variously use rule-based, probabilistic machine learning, and deep learning components.

The Stanford CoreNLP code is written in Java and licensed under the GNU General Public License (v3 or later). Note that this is the full GPL, which allows many free uses, but not its use in proprietary software that you distribute to others.

Build Instructions

Several times a year we distribute a new version of the software, which corresponds to a stable commit.

During the time between releases, one can always use the latest, under development version of our code.

Here are some helpful instructions to use the latest code:

Provided build

Sometimes we will provide updated jars here which have the latest version of the code.

At present, the current released version of the code is our most recent released jar, though you can always build the very latest from GitHub HEAD yourself.

Build with Ant

  1. Make sure you have Ant installed, details here: http://ant.apache.org/
  2. Compile the code with this command: cd CoreNLP ; ant
  3. Then run this command to build a jar with the latest version of the code: cd CoreNLP/classes ; jar -cf ../stanford-corenlp.jar edu
  4. This will create a new jar called stanford-corenlp.jar in the CoreNLP folder which contains the latest code
  5. The dependencies that work with the latest code are in CoreNLP/lib and CoreNLP/liblocal, so make sure to include those in your CLASSPATH.
  6. When using the latest version of the code make sure to download the latest versions of the corenlp-models, english-models, and english-models-kbp and include them in your CLASSPATH. If you are processing languages other than English, make sure to download the latest version of the models jar for the language you are interested in.

Build with Maven

  1. Make sure you have Maven installed, details here: https://maven.apache.org/
  2. If you run this command in the CoreNLP directory: mvn package , it should run the tests and build this jar file: CoreNLP/target/stanford-corenlp-4.0.0.jar
  3. When using the latest version of the code make sure to download the latest versions of the corenlp-models, english-models, and english-models-kbp and include them in your CLASSPATH. If you are processing languages other than English, make sure to download the latest version of the models jar for the language you are interested in.
  4. If you want to use Stanford CoreNLP as part of a Maven project you need to install the models jars into your Maven repository. Below is a sample command for installing the Spanish models jar. For other languages just change the language name in the command. To install stanford-corenlp-models-current.jar you will need to set -Dclassifier=models. Here is the sample command for Spanish: mvn install:install-file -Dfile=/location/of/stanford-spanish-corenlp-models-current.jar -DgroupId=edu.stanford.nlp -DartifactId=stanford-corenlp -Dversion=4.0.0 -Dclassifier=models-spanish -Dpackaging=jar

Models

The models jars that correspond to the latest code can be found in the table below.

Some of the larger (English) models -- like the shift-reduce parser and WikiDict -- are not distributed with our default models jar. These require downloading the English (extra) and English (kbp) jars. Resources for other languages require usage of the corresponding models jar.

Language Model Jar Last Updated
Arabic download 4.0.0
English (default) download 4.0.0
English (extra) download 4.0.0
English (kbp) download 4.0.0
Chinese download 4.0.0
French download 4.0.0
German download 4.0.0
Spanish download 4.0.0

Useful resources

You can find releases of Stanford CoreNLP on Maven Central.

You can find more explanation and documentation on the Stanford CoreNLP homepage.

For information about making contributions to Stanford CoreNLP, see the file CONTRIBUTING.md.

Questions about CoreNLP can either be posted on StackOverflow with the tag stanford-nlp, or on the mailing lists.

You can’t perform that action at this time.