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

semantic_distance_evaluator

semantic_distance_evaluator

【效率与协作】Estimate WordNet-style semantic distance by traversing typed semantic-pointer graphs.

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

技能说明

GitHub

name: semantic_distance_evaluator description: Estimate WordNet-style semantic distance by traversing typed semantic-pointer graphs.

Semantic Distance Evaluator

Use this skill when a task needs the semantic-distance mechanism described as a planned WordNet use. It operates on taxonomy dictionaries with synsets and semantic pointers.

Inputs

  • A taxonomy with synset ids and relation endpoints.
  • Synset-id pairs and a near/far threshold.

Outputs

  • Shortest path distance, synset path, relation-label trace, and near/far classification.

Workflow

  1. Convert semantic pointers into a traversal graph while preserving relation labels.
  2. Use breadth-first search for shortest concept distance.
  3. Return no finite distance for disconnected concepts.
  4. Classify pairs with a configured or learned threshold.
  5. Log distances and classifications when used as recovery evidence.

Validation

Run python tests/test_semantic_distance.py or validate the skill tree with tests enabled.

Limitations

Directional pointers are traversed bidirectionally for distance estimation in the reduced proxy while labels remain visible in the path trace.

我的收藏