executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
rules-and-trieGuides HanLP deterministic rules, sentence and string utilities, Trie/TrieDict matching, and model-backed custom dictionary overlays.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task mentions deterministic sentence splitting, hanlp.utils.rules, possible_tokenization, Trie, TrieDict, TupleTrieDict, custom dictionaries, dict_force, dict_combine, dict_tags, gazetteers, or longest-prefix matching.
references/trie-reference.md for verified trie and dictionary APIs.references/custom-dictionaries.md for model-backed tokenizer/POS/NER dictionary overlays.references/troubleshooting.md for matching surprises, tuple keys, whitespace, and model-download boundaries.scripts/rules_smoke.py for no-download rules/string utility checks.scripts/trie_smoke.py for no-download trie and dictionary checks.from hanlp_trie import Trie, TrieDict
trie = Trie({'商品': 'goods', '和服': 'kimono'})
print(trie.parse('商品和服'))
print(trie.parse_longest('商品和服'))
custom = TrieDict({'重要': 'important'})
print(custom.tokenize('第一个词语很重要'))
Trie and rule utilities can be verified without model downloads. Model-backed dictionary overlays such as tok.dict_force, tok.dict_combine, pos.dict_tags, and ner.dict_whitelist require a loaded pretrained component before they can change model output.