Skip to content
Back to skills

Language Model

ASecurity

"Route ASRT pinyin sequences through its statistical

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
businesspythonbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill language-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Language Model?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Language Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-language-model/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-language-model)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: language-model
description: "Route ASRT pinyin sequences through its statistical
  pinyin-to-Chinese language model."
metadata:
  disco-role: operating
disable-model-invocation: true
license: GPL 3.0
---

# language-model

Use this sub-skill when a task needs ASRT's pinyin-to-Chinese text stage:

- decode a tone-number pinyin token list such as `ni3 hao3 ya5` to Chinese text;
- post-process pinyin emitted by an ASRT acoustic model;
- inspect or debug the bundled unigram/bigram language-model counts;
- maintain `pinyin_stream_decode` state across streaming chunks.

Do **not** use this sub-skill for audio loading, feature extraction, acoustic pinyin generation, or RPC wrapper design. Route acoustic pinyin generation to the `acoustic-models` sub-skill, audio and dictionary basics to `data-and-features`, and HTTP/gRPC endpoint wrappers to `serving-clients`.

## Runtime assets

This sub-skill is self-contained and includes the files required by the ASRT language model:

- `dict.txt` — tone-number pinyin to candidate Chinese characters;
- `language_model/language_model1.txt` — unigram character counts;
- `language_model/language_model2.txt` — bigram character counts;
- `scripts/decode_pinyin.py` — standalone decoder adapted from ASRT's language-model implementation.

## Start here

1. For workflows and model behavior, read `references/pinyin-language-model.md`.
2. For API signatures and state formats, read `references/api-reference.md`.
3. For failure diagnosis, read `references/troubleshooting.md`.
4. For a quick self-contained decode, run:

```bash
python scripts/decode_pinyin.py ni3 hao3 ya5
```

Expected output:

```text
你好呀
```

Files in this skill

  • SKILL.md1.6 KB
  • dict.txt31.6 KB
  • language_model/language_model1.txt47 KB
  • references/api-reference.md3.6 KB
  • references/pinyin-language-model.md4.5 KB
  • references/troubleshooting.md3.6 KB
  • scripts/decode_pinyin.py9.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.