# 使用 Homebrew, MacPorts 安装 stanford-parser

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stanford-parser
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stanford-parser
```

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

## 软件包事实

- **软件包键:** brew:stanford-parser
- **软件包管理器:** Homebrew
- **版本:** 4.2.0
- **来源摘要:** Statistical NLP parser
- **主页:** <https://nlp.stanford.edu/software/lex-parser.shtml>
- **最后更新:** 2026-06-22T14:06:23-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lexparser-gui.sh (别名)
- lexparser-lang-train-test.sh (别名)
- lexparser-lang.sh (别名)
- lexparser.sh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Stanford Parser is the Stanford NLP Group's Java parser package for constituency and dependency parsing. It is both a standalone distribution and part of the CoreNLP lineage.

### 项目历史

The CoreNLP release history identifies Stanford Parser, released on 5 December 2002, as the earliest open-source software now comprising CoreNLP. The parser documentation says the original version was mainly written by Dan Klein, with support code and linguistic grammar development by Christopher Manning, followed by extensive contributions from other Stanford NLP researchers.

### 采用历史

The parser became widely packaged because it exposed statistical parsing models through a Java distribution, command-line scripts, GUI tooling, and language wrappers. The official parser page even notes Homebrew installation for OS X, reflecting its role as a standalone CLI package before and alongside the unified CoreNLP distribution.

### 使用方式

Users download the parser distribution and language models, then run parser scripts or Java classes to produce phrase-structure and dependency parses. The package includes PCFG, lexicalized dependency, lexicalized PCFG, shift-reduce, and neural dependency parser components depending on distribution and model selection.

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

Package maintainers care about Stanford Parser because it represents the classic heavy NLP CLI package: model jars, Java launch scripts, language-specific assets, and optional GUI behavior. A system package makes it easier to call from shell scripts and wrapper libraries without manually assembling each release.

### 时间线

- 2002: Stanford Parser is released as open-source software.
- 2003: Klein and Manning publish the cited ACL paper for accurate unlexicalized parsing.
- 2014: Parser releases add shift-reduce and dependency improvements in the CoreNLP-era tooling.
- 2020: Standalone parser 4.2.0 retrains English models with treebank fixes.

### Related projects

- Stanford Parser is related to CoreNLP, Stanford POS Tagger, Stanford NER, shift-reduce constituency parsing, neural dependency parsing, Tregex/Tsurgeon, and language wrappers for Java, PHP, Python/Jython, Ruby, and .NET.

### 来源

- <https://nlp.stanford.edu/software/lex-parser.shtml: Stanford parser software page with download, release history, wrappers, and Homebrew note.>
- <https://stanfordnlp.github.io/CoreNLP/history.html: official release history naming Stanford Parser as the 2002 origin.>
- <https://stanfordnlp.github.io/CoreNLP/tools_lex_parser.html: official parser overview, package contents, authorship, and parser variants.>


## 安全说明

narrow executable package without higher-risk signals.

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

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

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


## Combined YAML source

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