# Install stanford-ner with Homebrew, MacPorts

Stanford NLP Group's implementation of a Named Entity Recognizer. Version 4.2.0 via Homebrew; verified 2026-06-22.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

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

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

## Package facts

- **Package key:** brew:stanford-ner
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/stanford-ner>
- **Version:** 4.2.0
- **Source summary:** Stanford NLP Group's implementation of a Named Entity Recognizer
- **Homepage:** <https://nlp.stanford.edu/software/CRF-NER.shtml>
- **Repository:** <https://github.com/stanfordnlp/CoreNLP>
- **Upstream docs:** <https://nlp.stanford.edu/software/CRF-NER.shtml>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://nlp.stanford.edu/software/stanford-ner-4.2.0.zip>
- **Last updated:** 2026-06-22T14:06:23-07:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- ner-gui.sh (cli)
- ner.sh (cli)
- ner-gui.sh (alias)
- ner.sh (alias)

## Dependencies

- openjdk

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.2.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://nlp.stanford.edu/software/CRF-NER.shtml
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## 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:** 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

## Other Package-Manager Records

- 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


## Related links

- [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.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [stanford-parser](https://www.automicvault.com/pkg/brew/stanford-parser/) - Shares av.db curated category or tags: cli, data, java, natural-language-processing, nlp.
- [mitie](https://www.automicvault.com/pkg/brew/mitie/) - Shares av.db curated category or tags: cli, data, named-entity-recognition, natural-language-processing, nlp.
- [stanford-corenlp](https://www.automicvault.com/pkg/brew/stanford-corenlp/) - Shares av.db curated category or tags: cli, data, java, natural-language-processing, nlp.
- [cabocha](https://www.automicvault.com/pkg/brew/cabocha/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.
- [mallet](https://www.automicvault.com/pkg/brew/mallet/) - Shares av.db curated category or tags: cli, data, java, natural-language-processing.
- [mecab](https://www.automicvault.com/pkg/brew/mecab/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.
- [sentencepiece](https://www.automicvault.com/pkg/brew/sentencepiece/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.
- [yamcha](https://www.automicvault.com/pkg/brew/yamcha/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.

## Combined YAML source

View the package source record on GitHub. [combined/stanford-ner.yml](https://github.com/automic-vault/db/blob/main/combined/stanford-ner.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
