Token导航 LogoToken导航

Agent Skill · 研究检索

entity-extractor(实体提取器)

entity-extractor 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

entity-extractor 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 6,074。

总安装 23,372周安装 620GitHub Stars 公开资料未说明下载 4,890核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:entity-extractor(实体提取器)
来源仓库:https://github.com/eddiebe147/claude-settings
仓库路径:skills/entity-extractor
安装命令:
npx skills add eddiebe147/claude-settings --skill "entity-extractor"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add eddiebe147/claude-settings --skill "entity-extractor"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

entity-extractor 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于关键词搜索、任务场景匹配和来源线索筛选等研究检索场景。

通过 github 安装并使用 npx skills add eddiebe147/claude-settings --skill "entity-extractor" 命令部署。安装前需确认权限范围、维护状态及是否涉及联网或文件操作。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/entity-extractor

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add eddiebe147/claude-settings --skill "entity-extractor";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

entity-extractor 怎么安装?

在终端执行 npx skills add eddiebe147/claude-settings --skill "entity-extractor"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

entity-extractor 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

entity-extractor 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

entity-extractor 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

entity-extractor 用的人多吗?

公开数据是累计安装 23,372 次,近一周安装 620 次,下载 4,890 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

entity-extractor 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
entity-extractor

实体提取器 · 本页

23,372—需要联网MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
Entity Extractor
slug
entity-extractor
description
Extract named entities from text with high accuracy and customization
category
ai-ml
complexity
intermediate
version
1.0.0
author
ID8Labs
triggers
tags

Entity Extractor

The Entity Extractor skill guides you through implementing named entity recognition (NER) systems that identify and classify entities in text. From people and organizations to domain-specific entities like products, medical terms, or financial instruments, this skill covers extraction approaches from simple pattern matching to advanced neural models.

Entity extraction is a foundational NLP task that powers applications from search engines to knowledge graphs. Getting it right requires understanding your domain, choosing appropriate techniques, and handling the inherent ambiguity in natural language.

Whether you need to extract standard entity types, define custom entities for your domain, or build relation extraction on top of entity recognition, this skill ensures your extraction pipeline is accurate and maintainable.

Core Workflows

Workflow 1: Choose Extraction Approach

  1. Define target entities:

- Standard types: PERSON, ORG, LOCATION, DATE, MONEY - Domain-specific: PRODUCT, SYMPTOM, GENE, CONTRACT - Relations: connections between entities

  1. Assess available resources:

- Labeled training data - Domain expertise - Compute constraints

  1. Select approach:
ApproachTraining DataAccuracySpeedCustomization
spaCy (pre-trained)NoneGoodVery fastLimited
Rule-basedNoneVariableFastHigh
Fine-tuned BERT100s-1000sExcellentMediumFull
LLM (zero-shot)NoneGoodSlowPrompt-based
LLM (few-shot)Few examplesVery goodSlowPrompt-based
  1. Plan implementation and evaluation

Workflow 2: Implement Entity Extraction Pipeline

  1. Set up extraction:
   import spacy

   class EntityExtractor:
       def __init__(self, model="en_core_web_trf"):
           self.nlp = spacy.load(model)

       def extract(self, text):
           doc = self.nlp(text)
           entities = []
           for ent in doc.ents:
               entities.append({
                   "text": ent.text,
                   "type": ent.label_,
                   "start": ent.start_char,
                   "end": ent.end_char,
                   "confidence": getattr(ent, "confidence", None)
               })
           return entities

       def extract_batch(self, texts):
           docs = list(self.nlp.pipe(texts))
           return [self.extract_from_doc(doc) for doc in docs]
  1. Post-process entities:

- Normalize variations (IBM vs I.B.M.) - Resolve abbreviations - Link to knowledge base

  1. Validate extraction quality
  2. Handle edge cases

Workflow 3: Build Custom Entity Recognizer

  1. Prepare training data:
   # Format for spaCy training
   TRAIN_DATA = [
       ("Apple released the new iPhone today.", {
           "entities": [(0, 5, "ORG"), (24, 30, "PRODUCT")]
       }),
       ("Dr. Smith prescribed metformin for diabetes.", {
           "entities": [(0, 9, "PERSON"), (21, 30, "DRUG"), (35, 43, "CONDITION")]
       })
   ]
  1. Configure training:
   # spaCy config for NER training
   config = {
       "training": {
           "optimizer": {"learn_rate": 0.001},
           "batch_size": {"@schedules": "compounding", "start": 4, "stop": 32}
       },
       "components": {
           "ner": {
               "factory": "ner",
               "model": {"@architectures": "spacy.TransitionBasedParser"}
           }
       }
   }
  1. Train model:
   python -m spacy train config.cfg --output ./models --paths.train ./train.spacy --paths.dev ./dev.spacy
  1. Evaluate on held-out data
  2. Iterate based on errors

Quick Reference

ActionCommand/Trigger
Extract entities"Extract entities from [text]"
Choose NER model"Best NER for [domain]"
Custom entities"Train custom entity recognizer"
Evaluate NER"Evaluate entity extraction quality"
Handle ambiguity"Resolve ambiguous entities"
Entity linking"Link entities to knowledge base"

Best Practices

  • Start with Pre-trained: Don't train from scratch unnecessarily

- spaCy, Hugging Face, and cloud APIs cover common entities - Test pre-trained models first - Fine-tune only when needed

  • Define Clear Guidelines: Entity boundaries are ambiguous

- "Dr. John Smith" - one entity or two? - "New York Times" - ORG or GPE? - Create and follow consistent annotation guidelines

  • Handle Nested Entities: Some entities contain others

- "Bank of America headquarters" (ORG inside LOCATION) - Decide on nesting strategy upfront - Some models support flat only; others handle nested

  • Normalize Extracted Entities: Raw text has variations

- "IBM", "I.B.M.", "International Business Machines" - Canonicalize to standard form - Link to knowledge base IDs when possible

  • Evaluate Granularly: Aggregate metrics hide issues

- Report precision/recall per entity type - Analyze error patterns - Test on edge cases explicitly

  • Consider Context Window: Models have context limits

- Long documents may need chunking - Preserve context across chunks when possible - Re-run on boundaries if entities might span

Advanced Techniques

LLM-Based Entity Extraction

Use language models for flexible extraction:

def llm_extract_entities(text, entity_types):
    prompt = f"""Extract named entities from the following text.

Text: "{text}"

Entity types to extract:
{chr(10).join(f"- {t}: {desc}" for t, desc in entity_types.items())}

Return a JSON array of entities:
[{{"text": "entity text", "type": "ENTITY_TYPE", "start": 0, "end": 10}}]

Only include entities that clearly match the specified types.
"""

    response = llm.complete(prompt, response_format={"type": "json_object"})
    return json.loads(response)["entities"]

# Example usage
entity_types = {
    "COMPANY": "Business organizations",
    "PRODUCT": "Commercial products or services",
    "PERSON": "Individual people's names"
}
entities = llm_extract_entities(text, entity_types)

Hybrid Rule + ML Approach

Combine patterns with neural extraction:

class HybridExtractor:
    def __init__(self):
        self.ml_extractor = spacy.load("en_core_web_trf")
        self.patterns = load_pattern_rules()

    def extract(self, text):
        # ML extraction
        ml_entities = self.ml_extractor(text).ents

        # Pattern-based extraction
        pattern_entities = apply_patterns(text, self.patterns)

        # Merge with priority rules
        merged = merge_entities(
            ml_entities,
            pattern_entities,
            priority="pattern"  # Patterns override ML when overlap
        )

        return merged

    def add_pattern(self, pattern, entity_type):
        """Add domain-specific pattern."""
        self.patterns.append({
            "pattern": pattern,
            "type": entity_type
        })

Entity Linking

Connect extracted entities to knowledge bases:

def link_entity(entity_text, entity_type, knowledge_base):
    """
    Link extracted entity to canonical entry in knowledge base.
    """
    # Generate candidates
    candidates = knowledge_base.search(
        query=entity_text,
        type_filter=entity_type,
        limit=10
    )

    if not candidates:
        return {"entity": entity_text, "linked": None}

    # Score candidates
    scored = []
    for candidate in candidates:
        score = compute_linking_score(
            entity_text,
            candidate.name,
            candidate.aliases
        )
        scored.append((candidate, score))

    # Select best match
    best = max(scored, key=lambda x: x[1])

    if best[1] > LINKING_THRESHOLD:
        return {
            "entity": entity_text,
            "linked": best[0].id,
            "canonical_name": best[0].name,
            "confidence": best[1]
        }
    else:
        return {"entity": entity_text, "linked": None}

Relation Extraction

Extract relationships between entities:

def extract_relations(text, entities):
    """
    Given extracted entities, find relations between them.
    """
    prompt = f"""Given this text and extracted entities, identify relationships.

Text: "{text}"

Entities found:
{json.dumps(entities, indent=2)}

Identify relationships between entities. Return JSON:
[{{
    "subject": "entity text",
    "relation": "relationship type",
    "object": "entity text",
    "confidence": 0.9
}}]

Common relation types: WORKS_FOR, LOCATED_IN, FOUNDED, ACQUIRED, PARTNER_OF
"""

    response = llm.complete(prompt)
    return json.loads(response)

Active Learning for NER

Efficiently improve extraction with targeted labeling:

def active_learning_sample(unlabeled_texts, model, n_samples=100):
    """
    Select texts that would be most valuable to label.
    """
    uncertainties = []

    for text in unlabeled_texts:
        doc = model(text)
        # Calculate uncertainty (various strategies)
        uncertainty = calculate_ner_uncertainty(doc)
        uncertainties.append((text, uncertainty))

    # Select most uncertain
    uncertainties.sort(key=lambda x: x[1], reverse=True)
    return [text for text, _ in uncertainties[:n_samples]]

def calculate_ner_uncertainty(doc):
    """
    Calculate uncertainty based on entity confidence scores.
    """
    if not doc.ents:
        return 0.5  # No entities - medium uncertainty

    confidences = [ent._.confidence for ent in doc.ents if hasattr(ent._, "confidence")]
    if not confidences:
        return 0.5

    # High uncertainty = low confidence entities
    return 1 - min(confidences)

Common Pitfalls to Avoid

  • Inconsistent annotation guidelines leading to noisy training data
  • Not handling entity boundary ambiguity (where does entity end?)
  • Ignoring nested or overlapping entities when they matter
  • Training on small datasets without augmentation
  • Not normalizing entities before downstream use
  • Assuming pre-trained models work on your domain without testing
  • Not evaluating per-entity-type performance
  • Forgetting about entity linking for disambiguation

平台分布

Claude Code

29.14%
按下载量换算1,425

OpenCode

20.75%
按下载量换算1,015

Gemini CLI

18.37%
按下载量换算898

Antigravity

13.34%
按下载量换算652

Cursor

7.38%
按下载量换算361

windsurf

3.75%
按下载量换算183

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills