跳到正文
Skillpedia
分析与电子表格14k · #11145

deduplicate

它能做什么

这项技能在 Semantica 知识图谱中查找重复记录,例如同一家公司因拼写不同而出现的两条记录。适合想要一张整洁图谱、让每个现实事物只列出一次的人。

适用场景

  • ✓当你怀疑同一个人或公司在数据中出现了不止一次的时候。
  • ✓当你想整理同一对象之间重复的关系的时候。
  • ✓当你想获得关于合并重复项时保留哪一条的建议的时候。

技能链接

https://github.com/semantica-agi/semantica/blob/main/plugins/skills/deduplicate/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/semantica-agi/semantica/blob/main/plugins/skills/deduplicate/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我在知识图谱中找出重复的公司名称,并建议合并哪些条目?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会使用模糊文本匹配、结构提示和图相似度来比较条目,然后将可能匹配的条目归为一组。它会为每组推荐一个代表性条目。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

/semantica:deduplicate

Remove duplicates from the knowledge graph. Usage: /semantica:deduplicate <strategy> [args]

$ARGUMENTS = deduplication strategy + optional entity or threshold.


entities [--threshold <score>] [--field <name>]

Detect duplicate entities and group them by similarity.

from semantica.deduplication import DuplicateDetector

finder = DuplicateDetector()
candidates = finder.detect_duplicates(entities, threshold=threshold)
groups = finder.detect_duplicate_groups(entities, threshold=threshold)

Output: duplicate candidate list, duplicate groups, and representative merge recommendations.


relations [--similarity <score>]

Detect duplicate relationships and normalize edge representations.

from semantica.deduplication import DuplicateDetector

finder = DuplicateDetector()
relations = finder.detect_duplicates(relation_list, threshold=similarity)

Result: duplicate relation candidates, normalized relationship groups, and cleanup summary.

常见问题

它如何判断两个条目是否匹配?

它同时使用模糊文本匹配、结构启发式规则和图相似度。

它也会检查关系吗?

会。它也会查找重复的关系,并将其分组,以便整理图谱。

我能设定匹配的严格程度吗?

能。可以设置相似度阈值,以控制匹配的严格程度。

详情

作者的原始描述

Detect duplicate entities, duplicate groups, and relationship duplicates in Semantica using fuzzy matching, schema heuristics, and graph similarity.

repo: semantica-agi/semantica

热度

GitHub 星标
14k
排名
#11145
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能