# 使用 Homebrew, MacPorts 安装 stanford-ner

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

## 安装

```sh
sudo av install brew:stanford-ner
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stanford-ner
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stanford-ner
```

  证据: MacPorts ports tree: textproc/stanford-ner/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:stanford-ner
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/stanford-ner>
- **版本:** 4.2.0
- **来源摘要:** Stanford NLP Group's implementation of a Named Entity Recognizer
- **主页:** <https://nlp.stanford.edu/software/CRF-NER.shtml>
- **上游文档:** <https://nlp.stanford.edu/software/CRF-NER.shtml>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://nlp.stanford.edu/software/stanford-ner-4.2.0.zip>
- **最后更新:** 2026-06-22T14:06:23-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ner-gui.sh (cli)
- ner.sh (cli)
- ner-gui.sh (别名)
- ner.sh (别名)

## 依赖

- openjdk

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.2.0
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://nlp.stanford.edu/software/CRF-NER.shtml
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Stanford NER is the Stanford NLP Group's Java implementation of a named entity recognizer and CRF sequence-modeling tool. It is distributed both as a standalone Stanford NLP tool and as part of CoreNLP.

### 项目历史

The official documentation describes Stanford NER as a Java implementation of named entity recognition and notes that it is also known as CRFClassifier. The page credits the original CRF code to Jenny Finkel, feature extractors to Dan Klein, Christopher Manning, and Jenny Finkel, and cites the 2005 ACL paper by Jenny Rose Finkel, Trond Grenager, and Christopher Manning.

### 采用历史

Stanford NER became package-manager relevant because it offered trained English models, a Java API, command-line scripts, and server usage from a single download. The official page lists wrappers or integrations for .NET, Perl, PHP, Python, Ruby, and UIMA, showing how the Java tool was embedded in other language ecosystems.

### 使用方式

Command-line usage loads Stanford NER jars and classifier models, then runs Java classes such as `edu.stanford.nlp.ie.NERClassifierCombiner` against text files. The package also includes a GUI, batch files or shell scripts, server support, and Java demo code.

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

Package maintainers care about Stanford NER because it packages a classic NLP model workflow: Java bytecode, large serialized classifiers, shell scripts, and model selection. A good package hides classpath friction and makes older research software usable from modern CLI workflows.

### 时间线

- 2005: Finkel, Grenager, and Manning publish the cited ACL paper for the model and software.
- 2011: Stanford NLP documentation advises using matching releases of the Java NLP tools from 2011 onward.
- 2020: CoreNLP docs continue to document Stanford NER as an additional tool and CoreNLP annotator.

### Related projects

- Stanford NER is part of the broader Stanford JavaNLP/CoreNLP family and relates to CRFClassifier, Stanford POS Tagger, Stanford Parser, model jars, and language wrappers such as NLTK's Stanford NER interface.

### 来源

- <https://nlp.stanford.edu/software/CRF-NER.shtml: Stanford NLP software page with models and wrapper listings.>
- <https://stanfordnlp.github.io/CoreNLP/history.html: CoreNLP release context for Stanford JavaNLP tools.>
- <https://stanfordnlp.github.io/CoreNLP/tools_crf_ner.html: official NER overview, authorship, command-line/API/server notes, and citation.>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** stanford-ner
- **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

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

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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [stanford-parser](https://pkg.so/zh-hans/brew/stanford-parser/) - Shares pkgdb curated category or tags: cli, data, java, nlp, stanford-nlp.
- [stanford-corenlp](https://pkg.so/zh-hans/brew/stanford-corenlp/) - Shares pkgdb curated category or tags: cli, data, java, nlp.
- [kafka](https://pkg.so/zh-hans/brew/kafka/) - Shares pkgdb curated category or tags: cli, data, java.
- [mecab](https://pkg.so/zh-hans/brew/mecab/) - Shares pkgdb curated category or tags: cli, data, nlp.
- [neo4j](https://pkg.so/zh-hans/brew/neo4j/) - Shares pkgdb curated category or tags: cli, data, java.
- [parquet-cli](https://pkg.so/zh-hans/brew/parquet-cli/) - Shares pkgdb curated category or tags: cli, data, java.
- [avro-tools](https://pkg.so/zh-hans/brew/avro-tools/) - Shares pkgdb curated category or tags: cli, data, java.
- [tika](https://pkg.so/zh-hans/brew/tika/) - Shares pkgdb curated category or tags: cli, data, java.

## Combined YAML source

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


## 来源

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