algo-nlp-ner

Solid

"Implement Named Entity Recognition to identify and classify entities in text. Use this skill when the user needs to extract people, organizations, locations, dates, or custom entities from documents — even if they say 'extract names from text', 'find companies mentioned', or 'entity extraction'.".

AI & Automation 22 stars 8 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
45
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Named Entity Recognition ## Overview NER identifies and classifies named entities in text into predefined categories (Person, Organization, Location, Date, Money, etc.). Approaches: rule-based (regex, gazetteers), statistical (CRF), neural (BiLSTM-CRF, transformer-based). Modern NER uses spaCy or Hugging Face models with F1 scores 85-95%. ## When to Use **Trigger conditions:** - Extracting structured entities from unstructured text - Building knowledge graphs from documents - Preprocessing for information retrieval or question answering **When NOT to use:** - For text classification (categorizing whole documents, not extracting entities) - For relation extraction between entities (need additional RE model) ## Algorithm ``` IRON LAW: NER Performance Depends on DOMAIN Match A model trained on news text (OntoNotes) performs poorly on medical records or legal documents. Domain-specific entities (drug names, legal citations, product SKUs) require domain-specific training data or fine-tuning. Always evaluate on YOUR domain's data. ``` ### Phase 1: Input Validation Determine: target entity types (standard: PER, ORG, LOC, DATE, MONEY or custom), input language, domain. Select appropriate pre-trained model or prepare training data. **Gate:** Entity types defined, model or training data available. ### Phase 2: Core Algorithm **Pre-trained model approach:** 1. Load model (spaCy, Hugging Face NER pipeline) 2. Process text through the pipeline 3. Extract entity spans with type ...

Details

Author
charlieviettq
Repository
charlieviettq/awesome-agent-skill
Created
2 months ago
Last Updated
6 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category