libpinyin(1)

libpinyin1

Library to deal with pinyin

Overview

The libpinyin project aims to provide the algorithms core for intelligent sentence-based Chinese pinyin input methods.

Tools

gen_binary_files - generate initially binary pinyin libraries import_interpolation - import libpinyin textual format model data gen_unigram - increase the unigram frequency for all phrases

Usage

gen_binary_files --table-dir <DIRNAME>

--table-dir Read textual format files from the <DIRNAME> directory.

import_interpolation < <MODELFILE>

gen_unigram

Examples

Download the model.text.tar.gz, and extracts all files into the data sub-directory, then run the commands below to generate the binary model data.

gen_binary_files --table-dir ../data

import_interpolation < ../data/interpolation.text

gen_unigram

Releases

8 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–8
  2. 9–Arch

From libpinyin 2.10.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.