Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts 安装 mallet

查看 mallet 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mallet

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install mallet

MacPorts ports tree · math/mallet/Portfile · 来源: api.github.com

概览

软件包摘要

MAchine Learning for LanguagE Toolkit

命令和别名

  • classifier2info
  • csv2classify
  • csv2vectors
  • mallet
  • mallethon
  • prepend-license.sh
  • svmlight2vectors
  • text2classify
  • text2vectors
  • vectors2classify
  • vectors2info
  • vectors2topics
  • vectors2vectors

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
classifier2infocli全局可执行文件
csv2classifycli全局可执行文件
csv2vectorscli全局可执行文件
malletcli全局可执行文件
mallethoncli全局可执行文件
prepend-license.shcli全局可执行文件
svmlight2vectorscli全局可执行文件
text2classifycli全局可执行文件
text2vectorscli全局可执行文件
vectors2classifycli全局可执行文件
vectors2infocli全局可执行文件
vectors2topicscli全局可执行文件
vectors2vectorscli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本202108
管理器更新时间2026-06-22
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/mimno/Mallet

安装元数据

软件包元数据

软件包键brew:mallet
版本202108
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/mallet
主页https://mimno.github.io/Mallet/index
仓库https://github.com/mimno/Mallet
上游文档https://github.com/mimno/Mallet#readme
许可证Apache-2.0
源码归档https://github.com/mimno/Mallet/releases/download/v202108/Mallet-202108-bin.zip
最后更新2026-06-22T14:05:26-07:00
Pulseupdated
依赖openjdk
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemallet
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

MacPorts95%

mallet

sudo port install mallet
  • normalized package name match
  • 匹配方式:Mallet
MacPorts ports tree · api.github.com · MacPorts ports tree: math/mallet/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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