MAchine Learning for LanguagE Toolkit (MALLET)

MALLET is a Java-based package for statistical natural language processing, document classification, clustering, topic modeling, information extraction, and other machine learning applications to text.

License

License

Categories

Categories

MALLET Business Logic Libraries Machine Learning
GroupId

GroupId

cc.mallet
ArtifactId

ArtifactId

mallet
Last Version

Last Version

2.0.8
Release Date

Release Date

Type

Type

jar
Description

Description

MAchine Learning for LanguagE Toolkit (MALLET)
MALLET is a Java-based package for statistical natural language processing, document classification, clustering, topic modeling, information extraction, and other machine learning applications to text.
Project URL

Project URL

http://mallet.cs.umass.edu/
Source Code Management

Source Code Management

https://github.com/mimno/Mallet

Download mallet

How to add to project

<!-- https://jarcasting.com/artifacts/cc.mallet/mallet/ -->
<dependency>
    <groupId>cc.mallet</groupId>
    <artifactId>mallet</artifactId>
    <version>2.0.8</version>
</dependency>
// https://jarcasting.com/artifacts/cc.mallet/mallet/
implementation 'cc.mallet:mallet:2.0.8'
// https://jarcasting.com/artifacts/cc.mallet/mallet/
implementation ("cc.mallet:mallet:2.0.8")
'cc.mallet:mallet:jar:2.0.8'
<dependency org="cc.mallet" name="mallet" rev="2.0.8">
  <artifact name="mallet" type="jar" />
</dependency>
@Grapes(
@Grab(group='cc.mallet', module='mallet', version='2.0.8')
)
libraryDependencies += "cc.mallet" % "mallet" % "2.0.8"
[cc.mallet/mallet "2.0.8"]

Dependencies

compile (7)

Group / Artifact Type Version
junit : junit jar 4.10
org.beanshell : bsh jar 2.0b4
jgrapht : jgrapht jar 0.6.0
net.sf.jwordnet : jwnl jar 1.4_rc3
net.sf.trove4j : trove4j jar 2.0.2
com.googlecode.matrix-toolkits-java : mtj jar 0.9.14
org.jdom : jdom jar 1.1

Project Modules

There are no modules declared in this project.

Build Status codecov

Mallet

Website: http://mallet.cs.umass.edu/index.php

MALLET is a Java-based package for statistical natural language processing, document classification, clustering, topic modeling, information extraction, and other machine learning applications to text.

MALLET includes sophisticated tools for document classification: efficient routines for converting text to "features", a wide variety of algorithms (including Naïve Bayes, Maximum Entropy, and Decision Trees), and code for evaluating classifier performance using several commonly used metrics.

In addition to classification, MALLET includes tools for sequence tagging for applications such as named-entity extraction from text. Algorithms include Hidden Markov Models, Maximum Entropy Markov Models, and Conditional Random Fields. These methods are implemented in an extensible system for finite state transducers.

Topic models are useful for analyzing large collections of unlabeled text. The MALLET topic modeling toolkit contains efficient, sampling-based implementations of Latent Dirichlet Allocation, Pachinko Allocation, and Hierarchical LDA.

Many of the algorithms in MALLET depend on numerical optimization. MALLET includes an efficient implementation of Limited Memory BFGS, among many other optimization methods.

In addition to sophisticated Machine Learning applications, MALLET includes routines for transforming text documents into numerical representations that can then be processed efficiently. This process is implemented through a flexible system of "pipes", which handle distinct tasks such as tokenizing strings, removing stopwords, and converting sequences into count vectors.

An add-on package to MALLET, called GRMM, contains support for inference in general graphical models, and training of CRFs with arbitrary graphical structure.

Installation

To build a Mallet 2.0 development release, you must have the Apache ant build tool installed. From the command prompt, first change to the mallet directory, and then type ant

If ant finishes with "BUILD SUCCESSFUL", Mallet is now ready to use.

If you would like to deploy Mallet as part of a larger application, it is helpful to create a single ".jar" file that contains all of the compiled code. Once you have compiled the individual Mallet class files, use the command: ant jar

This process will create a file "mallet.jar" in the "dist" directory within Mallet.

Usage

Once you have installed Mallet you can use it using the following command:

bin/mallet [command] --option value --option value ...

Type bin/mallet to get a list of commands, and use the option --help with any command to get a description of valid options.

For details about the commands please visit the API documentation and website at: http://mallet.cs.umass.edu/

List of Algorithms:

  • Topic Modelling
    • LDA
    • Parallel LDA
    • DMR LDA
    • Hierarchical LDA
    • Labeled LDA
    • Polylingual Topic Model
    • Hierarchical Pachinko Allocation Model (PAM)
    • Weighted Topic Model
    • LDA with integrated phrase discovery
    • Word Embeddings (word2vec) using skip-gram with negative sampling
  • Classification
    • AdaBoost
    • Bagging
    • Winnow
    • C45 Decision Tree
    • Ensemble Trainer
    • Maximum Entropy Classifier (Multinomial Logistic Regression)
    • Naive Bayes
    • Rank Maximum Entropy Classifier
    • Posterior Regularization Auxiliary Model
  • Clustering
    • Greedy Agglomerative
    • Hill Climbing
    • K-Means
    • K-Best
  • Sequence Prediction Models
    • Conditional Random Fields
    • Maximum Entropy Markov Models
    • Hidden Markov Models
    • Semi-Supervised Sequence Prediction Models
  • Linear Regression

Versions

Version
2.0.8
2.0.7
2.0.7-RC2