jionlp
Chinese NLP preprocessing, parsing, augmentation, and language-analysis router for JioNLP.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- jionlp
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Chinese NLP preprocessing, parsing, augmentation, and language-analysis router for JioNLP.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/cli-reference.md1.0 KB
- 参考文档references/repo-provenance.md772 B
- 参考文档references/repo-routing-metadata.json527 B
- 参考文档references/troubleshooting.md1.4 KB
- 脚本scripts/search_api_docs.py1.2 KB
- 脚本scripts/smoke_core.py1.0 KB
03 SKILL.md 正文
JioNLP
Use this skill when the task is about JioNLP's Chinese text preprocessing, rule extraction, parsing, augmentation, annotation helpers, or bundled language-analysis utilities.
Quick start
- Install:
pip install jionlp - Import:
import jionlp as jio - Sanity check:
print(jio.__version__) - Search APIs interactively:
jio.help()orjio_help - For a silent smoke check, run
scripts/smoke_core.py
Importing jionlp prints a banner and loads jiojio's C helpers when available. That is expected.
Route map
| User intent | Use this sub-skill |
|---|---|
| Clean raw text, strip URLs/emails/phones, normalize full-width chars, clean HTML, split sentences, read/write line files, or search docstrings | sub-skills/text-cleaning-and-extraction/ |
| Parse or normalize time, money, location, phone, ID, vehicle plate, pinyin, radicals, idioms, or lunar/solar dates | sub-skills/parsing-and-normalization/ |
| Augment text with back translation, character swaps, homophone substitution, random add/delete, or entity replacement | sub-skills/text-augmentation/ |
| Convert NER/CWS/POS tags, build lexicon NER, split annotated datasets, or batch long NER inputs | sub-skills/annotation-and-dataset-tools/ |
| Load packaged dictionaries, extract keyphrases or summaries, score sentiment, find new words, use BPE, load the LLM test set, or work with MELLM | sub-skills/dictionaries-and-language-analysis/ |
How to route quickly
- If the request starts with a noisy paragraph and asks to remove or detect obvious patterns, start with
text-cleaning-and-extraction. - If the request asks what a time string, money string, address, phone number, ID card, or plate means, start with
parsing-and-normalization. - If the request mentions augmentation, back translation, or replacing entities, start with
text-augmentation. - If the request mentions BIO/BIOES tags, entity offsets, CWS/POS conversion, or dataset splits, start with
annotation-and-dataset-tools. - If the request mentions loaders, keyphrase, summary, sentiment, new words, BPE, LLM test data, or MELLM, start with
dictionaries-and-language-analysis.
Practical notes
jio.help()is interactive. Usescripts/search_api_docs.pyif you want a noninteractive keyword search.jio.bpe.byte_level_bpelives under thebpesubmodule, not as a root attribute.- Keyphrase, summary, new-word, NER time extraction, and text-classification helpers are exposed through submodules such as
jio.keyphrase,jio.summary,jio.new_word,jio.ner, andjio.text_classification. - A NumPy 1.x release older than 1.24 is required for the CWS/POS converters because this repository uses
np.unicode. phone_location()is safer on text that contains a leading non-digit boundary before the phone number.llm_test_dataset_loader()expects version strings such as'1.0'or'1.1'.
Read these first when needed
references/cli-reference.mdforjio_helpand the bundled search wrapper.references/troubleshooting.mdfor import, NumPy, loader, and external-data issues.scripts/smoke_core.pyfor a fast import and sample-API smoke check.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).