# 使用 Homebrew, MacPorts, Nix 安装 kytea

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

## 安装

```sh
sudo av install brew:kytea
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kytea
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kytea
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kytea
```

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

## 软件包事实

- **软件包键:** brew:kytea
- **软件包管理器:** Homebrew
- **版本:** 0.4.7
- **来源摘要:** Toolkit for analyzing text, especially Japanese and Chinese
- **主页:** <https://www.phontron.com/kytea/>
- **仓库:** <https://github.com/neubig/kytea>
- **最后更新:** 2026-08-02T01:26:52+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- api-example (别名)
- kytea (别名)
- train-kytea (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

KyTea is the Kyoto Text Analysis Toolkit, a C++ toolkit by Graham Neubig for word segmentation, pronunciation estimation, and other analysis tasks, especially for Japanese and other languages where word or morpheme boundaries are not explicit in raw text.

### 项目历史

The KyTea NEWS file records version 0.0.1 on 2009-11-05 as the initial release of KyWs and KyPe. The public GitHub repository and README describe the later project as a general text-analysis toolkit focused on Japanese and languages requiring segmentation.

KyTea's design sits in the statistical NLP toolkit tradition before transformer-based tokenizers became dominant. It gives researchers and language-processing users a trainable analyzer with command-line tools and a library API rather than a closed dictionary-only analyzer.

### 采用历史

KyTea's adoption is mostly academic and language-tooling oriented. It appears in package managers such as Homebrew, MacPorts, and Nix because Japanese and Chinese text-processing workflows often need a reproducible segmenter that can be scripted from Unix pipelines.

### 使用方式

The package installs kytea for analysis and train-kytea for model training. Users run it to segment text, estimate pronunciations, prepare corpora, or build custom models for domains where default Japanese tokenizers are not enough.

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

KyTea is a nice package-manager artifact because it packages research NLP into classic Unix form: a small binary, a training command, headers, and docs. It is especially useful in multilingual text-analysis stacks where tokenization is a prerequisite rather than the final task.

### 时间线

- 2009-11-05: KyTea 0.0.1 was released as the initial release of KyWs and KyPe.
- 2009-11-16: The ChangeLog records version 0.0.2 with Shift-JIS support and an Autotools build-system change.
- 2026-07-01: The GitHub releases page for neubig/kytea listed no packaged GitHub releases, so the historical anchor remains the repository NEWS and source documentation.

### Related projects

- Related tools and concepts include Japanese morphological analyzers, Chinese word segmentation, MeCab-style tokenization workflows, statistical NLP, corpus preparation, and trainable language-specific text-analysis pipelines.

### 来源

- <https://github.com/neubig/kytea>
- <https://github.com/neubig/kytea/blob/master/ChangeLog>
- <https://raw.githubusercontent.com/neubig/kytea/master/NEWS>
- <https://www.phontron.com/kytea>
- <https://www.phontron.com/kytea/api.html>
- <https://www.phontron.com/kytea/train.html>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - kytea: normalized package name match | nixpkgs package indexes: pkgs/by-name/ky/kytea/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - kytea: normalized package name match | MacPorts ports tree: textproc/kytea/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/kytea.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kytea.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
