AGENT SKILL

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

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() or jio_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. Use scripts/search_api_docs.py if you want a noninteractive keyword search.
  • jio.bpe.byte_level_bpe lives under the bpe submodule, 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, and jio.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.md for jio_help and the bundled search wrapper.
  • references/troubleshooting.md for import, NumPy, loader, and external-data issues.
  • scripts/smoke_core.py for a fast import and sample-API smoke check.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351