Stanford Classifer

A classifier is a machine learning tool that will take data items and place them into one of k classes. A probabilistic classifier, like this one, can also give a probability distribution over the class assignment for a data item. This software is a Java implementation of a maximum entropy classifier. Maximum entropy models are otherwise known as softmax classifiers and are essentially equivalent to multiclass logistic regression models (though parameterized slightly differently, in a way that is advantageous with sparse explanatory feature vectors). In other words, this is the same basic technology that you're usually getting in various of the cloud-based machine learning APIs (Amazon, Google, ...) The classification method is described in:

Christopher Manning and Dan Klein. 2003. Optimization, Maxent Models, and Conditional Estimation without Magic. Tutorial at HLT-NAACL 2003 and ACL 2003. [pdf slides] [pdf handouts]

Version 2 of the classifier was developed by Anna Rafferty, Alex Kleeman, Jenny Finkel, and Christopher Manning.

The software requires requires Java (now Java 8). As well as API access, the program includes an easy-to-use command-line interface, ColumnDataClassifier , for building models. Its features are especially suited to building models over text data, but it also supports numeric variables.

Licensing. The Stanford Classifier is available for download, licensed under the GNU General Public License (v2 or later). Source is included. The Stanford Classifier 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 proprietary software, commercial licensing is available. If you don't need a commercial license, but would like to support maintenance of these tools, we welcome gift funding.

The download is a 9.6 MB zipped file. If you unpack that file, you should have everything needed, including example files and documentation. Start by reading the README.txt file. Send any questions or feedback to java-nlp-support@lists.stanford.edu .

JavaScript/npm: Milos Bejda has written stanford-classifier Nodejs wrapper. Source on github.

An introduction to the classifier and some examples of its use are available on our Wiki page . You can also look at the javadoc for ColumnDataClassifier

Have a support question? Please ask us on Stack Overflow using the tag stanford-nlp .

Feedback, questions, licensing issues, and bug reports / fixes can also be sent to our mailing lists (see immediately below).

We have 3 mailing lists for the Stanford Classifier all of which are shared with other JavaNLP tools (with the exclusion of the parser). Each address is at @lists.stanford.edu :

java-nlp-user This 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 java-nlp-user-join@lists.stanford.edu . (Leave the subject and message body empty.) You can also look at the list archives. java-nlp-announce This list will be used only to announce new versions of Stanford JavaNLP tools. So it will be very low volume (expect 2-4 messages a year). Join the list via this webpage or by emailing java-nlp-announce-join@lists.stanford.edu . (Leave the subject and message body empty.) java-nlp-support This 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 using Stack Overflow or joining and using java-nlp-user . You cannot join java-nlp-support , but you can mail questions to java-nlp-support@lists.stanford.edu .

Release history