界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

context_sense_tagger

context_sense_tagger

【效率与协作】Select or defer WordNet-style sense pointers using current and previous sentence context.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: context_sense_tagger description: Select or defer WordNet-style sense pointers using current and previous sentence context.

Context Sense Tagger

Use this skill to emulate the ConText output contract from the WordNet report. It consumes preprocessed token records and a WordNet-style taxonomy, then emits selected sense pointers or explicit unresolved reasons.

Inputs

  • Sentence records from the collocation/morphology preprocessor.
  • A taxonomy created with the lexical taxonomy schema skill.

Outputs

  • Tagged token records with sense_id and confidence when selected.
  • Unresolved records with a reason such as no_wordnet_entry_for_lemma_pos, ambiguous_context_tie, or insufficient_context.

Workflow

  1. Build a lemma/POS index over taxonomy synsets.
  2. Gather context terms from the current and previous sentence.
  3. Filter candidates by uninflected lemma and POS.
  4. Score candidates by overlap with gloss and related-synset lemmas.
  5. Select only a unique supported candidate; otherwise record a reason instead of inventing a pointer.

Validation

Run python tests/test_sense_tagger.py or validate_skill_tree.py --run-tests.

Limitations

The scorer is deterministic and small. It captures the paper mechanism for recovery, not a full automatic word-sense-disambiguation system.

我的收藏