# 使用 Homebrew, apt, zypper 安装 apache-opennlp

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

## 安装

```sh
sudo av install brew:apache-opennlp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install apache-opennlp
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libapache-opennlp-java
```

  证据: Debian stable package indexes: libapache-opennlp-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install opennlp
```

  证据: openSUSE Tumbleweed package metadata: opennlp from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:apache-opennlp
- **软件包管理器:** Homebrew
- **版本:** 2.5.11
- **来源摘要:** Machine learning toolkit for processing natural language text
- **主页:** <https://opennlp.apache.org/>
- **最后更新:** 2026-07-24T10:05:18Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- opennlp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.5.11
## 项目历史与用法

Apache OpenNLP is a Java machine-learning toolkit and command-line suite for natural-language processing tasks such as sentence detection, tokenization, part-of-speech tagging, named-entity extraction, chunking, parsing, language detection, and coreference resolution.

### 项目历史

OpenNLP existed before Apache incubation, with current Apache pages still pointing to archived SourceForge releases and model resources. The project entered the Apache Incubator in November 2010 and graduated as an Apache top-level project on 2012-02-15.

The incubation record describes the project goal as creating a mature toolkit for common NLP tasks and providing pre-built models for multiple languages. The Apache-era project continued to ship both a Java API and a common opennlp command-line entry point.

### 采用历史

OpenNLP's adoption is strongest in Java and JVM text-processing pipelines where developers want a conventional library and CLI for classic NLP rather than a server or hosted model. Its old SourceForge model archive and Apache manual both show the long-running package culture around downloading binary models, running trainers, and wiring the toolkit into UIMA or custom applications.

As newer deep-learning NLP stacks arrived, OpenNLP remained relevant for lightweight, inspectable, trainable components and for organizations with Java pipelines that need sentence splitting, tokenization, tagging, NER, and parser tools without adopting a Python-heavy stack.

### 使用方式

The Homebrew package exposes the opennlp command. Apache's manual says the binary distribution includes an opennlp script for Linux-compatible systems and opennlp.bat for Windows, with OPENNLP_HOME and PATH used to make the tools convenient.

Typical CLI usage invokes a tool name plus a model, reading from stdin and writing to stdout, or runs trainer commands with model output, language, training data, encoding, and task-specific options. That makes the package friendly for shell pipelines and repeatable model-training experiments.

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

OpenNLP is appealing to package nerds because it is a Java NLP library with a real Unix-style CLI surface. You can install it, fetch or provide models, pipe text through tokenizers or taggers, and train task-specific models without building an application first.

It also carries a visible history of pre-Apache open-source distribution: SourceForge-era releases and models, Apache incubation, Maven artifacts, and a CLI that still exposes the toolkit as a collection of small named NLP tools.

### 时间线

- 2010: OpenNLP enters the Apache Incubator.
- 2011: Apache OpenNLP 1.5.2-incubating is released.
- 2012: OpenNLP graduates as an Apache top-level project.
- 2026: Apache documentation lists current 2.x and 3.x milestone manuals and Javadocs.

### Related projects

- Apache UIMA is an adjacent Java text-analysis framework with documented OpenNLP integration.
- SourceForge-era OpenNLP models, Maven Central artifacts, ONNX Runtime support, and Java NLP pipelines are common adjacent pieces.

### 来源

- <https://incubator.apache.org/projects/opennlp.html>
- <https://opennlp.apache.org/docs/2.5.4/manual/opennlp.html>
- <https://opennlp.apache.org/download.html>
- <https://opennlp.apache.org/models.html>
- <https://opennlp.apache.org/news/news-2010-11-23.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - libapache-opennlp-java - 2.5.3-1: normalized package name match | Debian stable package indexes: libapache-opennlp-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | machine learning based toolkit for the processing of natural language text | https://opennlp.apache.org
- Debian apt - opennlp - 2.5.3-1: normalized package name match | Debian stable package indexes: opennlp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | wrapper for Apache OpenNLP natural language text processing toolkit | https://opennlp.apache.org
- Ubuntu apt - libapache-opennlp-java - 2.3.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libapache-opennlp-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | machine learning based toolkit for the processing of natural language text | https://opennlp.apache.org
- Ubuntu apt - opennlp - 2.3.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: opennlp from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | wrapper for Apache OpenNLP natural language text processing toolkit | https://opennlp.apache.org
- zypper - opennlp - 1.9.5-2.1: installed executable or alias match | openSUSE Tumbleweed package metadata: opennlp from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A machine learning based toolkit for the processing of natural language text | https://opennlp.apache.org/
- zypper - opennlp-morfologik-addon - 1.9.5-2.1: installed executable or alias match | openSUSE Tumbleweed package metadata: opennlp-morfologik-addon from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Apache OpenNLP Morfologik Addon | https://opennlp.apache.org/
- zypper - opennlp-tools - 1.9.5-2.1: installed executable or alias match | openSUSE Tumbleweed package metadata: opennlp-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Apache OpenNLP Tools | https://opennlp.apache.org/
- zypper - opennlp-uima - 1.9.5-2.1: installed executable or alias match | openSUSE Tumbleweed package metadata: opennlp-uima from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Apache OpenNLP UIMA Annotators | https://opennlp.apache.org/


## Combined YAML source

View the package source record on GitHub. [combined/apache-opennlp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/apache-opennlp.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
