# Install mallet with Homebrew, MacPorts

MAchine Learning for LanguagE Toolkit. Version 202108 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:mallet
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mallet
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mallet
```

  Evidence: MacPorts ports tree: math/mallet/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:mallet
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mallet>
- **Version:** 202108
- **Source summary:** MAchine Learning for LanguagE Toolkit
- **Homepage:** <https://mimno.github.io/Mallet/index>
- **Repository:** <https://github.com/mimno/Mallet>
- **Upstream docs:** <https://github.com/mimno/Mallet#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/mimno/Mallet/releases/download/v202108/Mallet-202108-bin.zip>
- **Last updated:** 2026-06-22T14:05:26-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- classifier2info (cli)
- csv2classify (cli)
- csv2vectors (cli)
- mallet (cli)
- mallethon (cli)
- prepend-license.sh (cli)
- svmlight2vectors (cli)
- text2classify (cli)
- text2vectors (cli)
- vectors2classify (cli)
- vectors2info (cli)
- vectors2topics (cli)
- vectors2vectors (cli)
- classifier2info (alias)
- csv2classify (alias)
- csv2vectors (alias)
- mallet (alias)
- mallethon (alias)
- prepend-license.sh (alias)
- svmlight2vectors (alias)
- text2classify (alias)
- text2vectors (alias)
- vectors2classify (alias)
- vectors2info (alias)
- vectors2topics (alias)
- vectors2vectors (alias)

## Dependencies

- openjdk

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 202108
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/mimno/Mallet
- info: No cached GitHub release or tag data was available.
## Project history and usage

MALLET, the MAchine Learning for LanguagE Toolkit, is a Java package and command-line toolkit for statistical natural language processing. Its official documentation describes support for document classification, clustering, topic modeling, information extraction, sequence tagging, and other machine-learning applications to text.

### Project history

The project is associated with Andrew McCallum's MALLET citation from 2002 and originated in an academic NLP context at UMass. The modern public repository is maintained under the mimno GitHub organization, and the official site identifies it as open source under the Apache 2.0 license.

MALLET became especially visible to digital humanities, information science, and NLP users because it packaged algorithms such as Maximum Entropy classifiers, Conditional Random Fields, Latent Dirichlet Allocation, Pachinko Allocation, and Hierarchical LDA behind reusable Java APIs and shell commands. Its 2.1.0 release in 2026 was described by the maintainers as the first stable release since 2.0.8 in 2016, modernizing the build around Java 17 and Maven.

### Adoption history

MALLET's package-manager footprint is modest but important: Homebrew and MacPorts carry it for macOS users who want the historical CLI workflow without building the Java project by hand. The GitHub repository shows roughly a thousand stars and hundreds of forks, which is consistent with a long-lived research toolkit rather than a fast-moving application.

The toolkit's adoption has been strongest where reproducible text-analysis workflows matter: topic-modeling corpora, classroom NLP exercises, digital humanities projects, and research code that wants a known implementation rather than a cloud service.

### How it is used

The command-line workflow centers on `bin/mallet [command] --option value`, with helper commands for importing text or CSV data, converting data to vectors, training classifiers, classifying new text, and running topic models. The README recommends building with Maven or using binary downloads, then running `bin/mallet --help` or a command-specific help option.

In packages such as Homebrew, MALLET matters because it turns a Java research toolkit into ordinary terminal commands like `mallet`, `text2vectors`, `vectors2topics`, and `csv2classify`, making it scriptable in shell pipelines and notebooks.

### Why package nerds care

MALLET is a classic example of a research toolkit that became infrastructure for package-manager users: old enough to have stable workflows, specialized enough that vendoring it is annoying, and still useful when a project needs local NLP processing without a server stack.

For package curators, the interesting maintenance points are Java runtime requirements, binary wrapper scripts, and the 2026 shift to Java 17 and Maven. Those details directly affect whether older MALLET recipes keep working on current systems.

### Timeline

- 2002: Andrew McCallum's official MALLET citation identifies the toolkit.
- 2016: MALLET 2.0.8 became the last stable release before a long quiet period.
- 2021: A serialization-breaking 202108 release changed internal collections and licensing details.
- 2026: MALLET 2.1.0 shipped as the first stable release since 2.0.8, requiring Java 17.

### Related projects

- GRMM was documented as an add-on package for inference in graphical models and CRF training with arbitrary graphical structure.
- MALLET overlaps historically with NLP libraries and topic-modeling stacks, but remains distinctive because it exposes mature algorithms as local Java command-line tools.

### Sources

- <https://github.com/mimno/Mallet>
- <https://github.com/mimno/Mallet/releases>
- <https://mimno.github.io/Mallet/>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mallet
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- MacPorts - mallet: normalized package name match | MacPorts ports tree: math/mallet/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [djl-serving](https://www.automicvault.com/pkg/brew/djl-serving/) - Shares av.db curated category or tags: cli, data, java, machine-learning.
- [classifier](https://www.automicvault.com/pkg/brew/classifier/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [lightgbm](https://www.automicvault.com/pkg/brew/lightgbm/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [mitie](https://www.automicvault.com/pkg/brew/mitie/) - Shares av.db curated category or tags: cli, data, machine-learning, natural-language-processing.
- [ncnn](https://www.automicvault.com/pkg/brew/ncnn/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [rgf](https://www.automicvault.com/pkg/brew/rgf/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [sentencepiece](https://www.automicvault.com/pkg/brew/sentencepiece/) - Shares av.db curated category or tags: cli, data, machine-learning, natural-language-processing.
- [stanford-corenlp](https://www.automicvault.com/pkg/brew/stanford-corenlp/) - Shares av.db curated category or tags: cli, data, java, natural-language-processing.
- [stanford-ner](https://www.automicvault.com/pkg/brew/stanford-ner/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, java, language, natural.

## Combined YAML source

View the package source record on GitHub. [combined/mallet.yml](https://github.com/automic-vault/db/blob/main/combined/mallet.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
