# 使用 Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper 安装 link-grammar

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

## 安装

```sh
sudo av install brew:link-grammar
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install link-grammar
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install link-grammar
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install link-grammar
```

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

- dnf (92%):

```sh
sudo dnf install link-grammar
```

  证据: Fedora Rawhide package metadata: link-grammar from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#link-grammar
```

  证据: nixpkgs package indexes: pkgs/by-name/li/link-grammar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S link-grammar
```

  证据: Arch Linux sync databases: link-grammar from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install link-grammar
```

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

## 软件包事实

- **软件包键:** brew:link-grammar
- **软件包管理器:** Homebrew
- **版本:** 5.13.0
- **来源摘要:** Carnegie Mellon University's link grammar parser
- **主页:** <https://github.com/opencog/link-grammar>
- **仓库:** <https://github.com/opencog/link-grammar>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- link-generator (别名)
- link-parser (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Link Grammar is the CMU Link Grammar natural-language parser packaged as libraries, dictionaries, and command-line tools. It turns sentences into graph-like typed links between words, with conversions to more conventional phrase-structure and dependency views.

### 项目历史

The theory was developed in 1991 by Davy Temperley, John Lafferty, and Daniel Sleator at Carnegie Mellon University. The project's README points to the original 1991 CMU technical report, a 1993 parsing workshop paper, and a 1995 robust parsing paper as the foundational publications.

The modern package is a continuation of the original CMU parser but has diverged substantially from the early code base. The README describes major engineering evolution: extensive bug fixes, orders-of-magnitude performance work, full multithreading, UTF-8 support, security cleanup for cloud deployment, improved English coverage, and added languages including Thai and Russian.

### 采用历史

Link Grammar has persisted as a niche but long-lived NLP package because it combines an academic grammar formalism with runnable dictionaries and a small interactive parser. Its presence in Unix package managers keeps the CMU parser available for experiments, symbolic NLP systems, dictionary work, and regression tests even as statistical and neural NLP methods became dominant.

### 使用方式

The package includes language dictionaries, APIs for multiple programming languages, and command-line tools such as link-parser and link-generator. The interactive parser is useful for inspecting linkages and costs by hand, while the library form lets other NLP systems consume the parser programmatically.

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

Link Grammar is package-nerd catnip because it is an old academic parser that still builds as a normal Unix package. It carries dictionaries, generated data, C libraries, bindings, man pages, and CLI tools, preserving a pre-deep-learning branch of NLP in a form that can still be installed with a package manager.

### 时间线

- 1991: Temperley, Lafferty, and Sleator developed the Link Grammar theory at Carnegie Mellon University.
- 1991: The CMU-CS-91-196 technical report Parsing English with a Link Grammar was published.
- 1993: Sleator and Temperley presented Parsing English with a Link Grammar at the Third International Workshop on Parsing Technologies.
- 1995: Grinberg, Lafferty, and Sleator published A Robust Parsing Algorithm for Link Grammars.
- 5.9.0: The package added an experimental sentence-generation system exposed through link-generator.

### Related projects

- Related projects include the original CMU Link Grammar parser, OpenCog Language Learning, the link-generator tool, and downstream NLP systems that prefer symbolic grammar structures over purely statistical parsers.

### 来源

- <https://github.com/opencog/link-grammar>
- <https://github.com/opencog/link-grammar/blob/master/AUTHORS>
- <https://github.com/opencog/link-grammar/blob/master/README.md>
- <https://www.cs.cmu.edu/afs/cs.cmu.edu/project/link/pub/www/papers/ps/LG-IWPT93.ps>
- <https://www.cs.cmu.edu/afs/cs.cmu.edu/project/link/pub/www/papers/ps/tr95-125.ps>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - liblink-grammar-dev - 5.12.5~dfsg-1+b3: normalized package name match | Debian stable package indexes: liblink-grammar-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (development headers) | https://www.abisource.com/projects/link-grammar/
- Debian apt - liblink-grammar-java - 5.12.5~dfsg-1+b3: normalized package name match | Debian stable package indexes: liblink-grammar-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (JNI library) | https://www.abisource.com/projects/link-grammar/
- Debian apt - liblink-grammar5t64 - 5.12.5~dfsg-1+b3: normalized package name match | Debian stable package indexes: liblink-grammar5t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (libraries) | https://www.abisource.com/projects/link-grammar/
- Debian apt - link-grammar - 5.12.5~dfsg-1+b3: normalized package name match | Debian stable package indexes: link-grammar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser | https://www.abisource.com/projects/link-grammar/
- Debian apt - link-grammar-dictionaries-all - 5.12.5~dfsg-1: normalized package name match | Debian stable package indexes: link-grammar-dictionaries-all from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (all dictionaries) | https://www.abisource.com/projects/link-grammar/
- Debian apt - link-grammar-dictionaries-en - 5.12.5~dfsg-1: normalized package name match | Debian stable package indexes: link-grammar-dictionaries-en from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (English dictionary) | https://www.abisource.com/projects/link-grammar/
- Debian apt - python-link-grammar-examples - 5.12.5~dfsg-1: normalized package name match | Debian stable package indexes: python-link-grammar-examples from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CMU's link grammar parser (Python examples) | https://www.abisource.com/projects/link-grammar/
- Debian apt - python3-link-grammar - 5.12.5~dfsg-1+b3: normalized package name match | Debian stable package indexes: python3-link-grammar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (Python 3) | https://www.abisource.com/projects/link-grammar/
- Nix - link-grammar: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/link-grammar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - liblink-grammar-dev - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblink-grammar-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser (development headers) | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - liblink-grammar-java - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblink-grammar-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser (JNI library) | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - liblink-grammar5 - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblink-grammar5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser (libraries) | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - link-grammar - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: link-grammar from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - link-grammar-dictionaries-all - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: link-grammar-dictionaries-all from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser (all dictionaries) | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - link-grammar-dictionaries-en - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: link-grammar-dictionaries-en from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser (English dictionary) | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - python-link-grammar-examples - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: python-link-grammar-examples from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CMU's link grammar parser (Python examples) | https://www.abisource.com/projects/link-grammar/


## Combined YAML source

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