About | Questions | Mailing lists | Download | Extensions | Models | Online demo | Release history | FAQ
Stanford NER is a Java implementation of a Named Entity Recognizer. Named Entity Recognition (NER) labels sequences of words in a text which are the names of things, such as person and company names, or gene and protein names. It comes with well-engineered feature extractors for Named Entity Recognition, and many options for defining feature extractors. Included with the download are good named entity recognizers for English, particularly for the 3 classes (PERSON, ORGANIZATION, LOCATION), and we also make available on this page various other models for different languages and circumstances, including models trained on just the CoNLL 2003 English training data. The distributional similarity features in some models improve performance but the models require considerably more memory.
Stanford NER is also known as CRFClassifier. The software provides a general implementation of (arbitrary order) linear chain Conditional Random Field (CRF) sequence models. That is, by training your own models, you can actually use this code to build sequence models for any task. (CRF models were pioneered by Lafferty, McCallum, and Pereira (2001); see Sutton and McCallum (2006) or Sutton and McCallum (2010) for more comprehensible introductions.)
The CRF code is by Jenny Finkel. The feature extractors are by Dan Klein, Christopher Manning, and Jenny Finkel. Much of the documentation and usability is due to Anna Rafferty. The CRF sequence models provided here do not precisely correspond to any published paper, but the correct paper to cite for the software is:
Jenny Rose Finkel, Trond Grenager, and Christopher Manning. 2005. Incorporating Non-local Information into Information Extraction Systems by Gibbs Sampling. Proceedings of the 43nd Annual Meeting of the Association for Computational Linguistics (ACL 2005), pp. 363-370.
The software provided here is similar to the baseline local+Viterbi
model in that paper, but adds new
distributional similarity based features (in the
classifiers). The big models were trained on a mixture of CoNLL, MUC-6, MUC-7
and ACE named entity corpora, and as a result the models are fairly robust
You can look at a Powerpoint Introduction to NER and the Stanford NER package [ppt] [pdf] or the FAQ, which has some information on training models. Further documentation is provided in the included README and in the javadocs.
Stanford NER is available for download,
licensed under the GNU
General Public License (v2 or later). Source is included.
The package includes components for command-line invocation (look at the
shell scripts and batch files included in the download), running as a
server (look at
NERServer in the sources jar file), and a
Java API (look at the simple examples in the
included in the download, and then at the javadocs).
code is dual licensed (in a similar manner to MySQL, etc.).
Open source licensing is under the full GPL,
which allows many free uses.
For distributors of
software, commercial licensing is available.
If you don't need a commercial license, but would like to support
maintenance of these tools, we welcome gifts.
There is also a list of Frequently Asked Questions (with answers!).
Have a support question? Ask us on Stack Overflow using the tag stanford-nlp.
Feedback and bug reports / fixes can be sent to our mailing lists.
We have 3 mailing lists for the Stanford Named Entity Recognizer,
all of which are shared
with other JavaNLP tools (with the exclusion of the parser). Each address is
java-nlp-userThis is the best list to post to in order to send feature requests, make announcements, or for discussion among JavaNLP users. (Please ask support questions on Stack Overflow using the stanford-nlp tag.)
You have to subscribe to be able to use this list.
Join the list via this webpage or by emailing
firstname.lastname@example.org. (Leave the
subject and message body empty.) You can also
the list archives.
java-nlp-announceThis list will be used only to announce new versions of Stanford JavaNLP tools. So it will be very low volume (expect 1-3 messages a year). Join the list via this webpage or by emailing
email@example.com. (Leave the subject and message body empty.)
java-nlp-supportThis list goes only to the software maintainers. It's a good address for licensing questions, etc. For general use and support questions, you're better off joining and using
java-nlp-user. You cannot join
java-nlp-support, but you can mail questions to
The download is a 151M zipped file (mainly consisting of classifier data objects). If you unpack that file, you should have everything needed for English NER (or use as a general CRF). It includes batch files for running under Windows or Unix/Linux/MacOSX, a simple GUI, and the ability to run as a server. Stanford NER requires Java v1.8+. If you want to use Stanford NER for other languages, you'll also need to download model files for those languages; see further below.
For some (computer) languages, there are more up-to-date interfaces to Stanford NER available by using it inside Stanford CoreNLP, and you are better off getting those from the CoreNLP page an using thema....
Included with Stanford NER are a 4 class model trained for CoNLL, a 7 class model trained for MUC, and a 3 class model trained on both data sets for the intersection of those class sets.
|3 class:||Location, Person, Organization|
|4 class:||Location, Person, Organization, Misc|
|7 class:||Time, Location, Organization, Person, Money, Percent, Date|
These models each use distributional similarity features, which provide some performance gain at the cost of increasing their size and runtime. Also available are the same models missing those features.
edu/stanford/nlp/models/.... You can run
jar -tto get the list of files in the jar file.
We have an online demo of several of our NER models. Special thanks to Dat Hoang, who provided the initial version. Note that the online demo demonstrates single CRF models; in order to see the effect of the time annotator or the combined models, see CoreNLP.
|3.5.2||2015-04-20||synch standalone and CoreNLP functionality|
|3.5.1||2015-01-29||Substantial accuracy improvements|
|3.5.0||2014-10-26||Upgrade to Java 8|
|3.4.1||Added Spanish models|
|3.4||Fix serialization of new models|
|3.3.0||Updated for compatibility|
|3.2.0||Improved line by line handling|
|1.2.7||Add Chinese model, include Wikipedia data in 3-class English model|
|1.2.6||Minor bug fixes|
|1.2.5||Fix encoding issue|
|1.2.4||Caseless versions of models supported|
|1.2.3||Minor bug fixes|
|1.2.2||Improved thread safety|
|1.2.1||Models reduced in size but on average improved in accuracy (improved distsim clusters)|
|1.2||Normal download includes 3, 4, and 7 class models. Updated for compatibility with other software releases.|
|1.1.1||Minor bug and usability fixes, and changed API (in particular the methods to classify and output tagged text)|
|1.1||Additional feature flags, various code updates|
Site design by Bill MacCartney