Prompt · Data Analysts
Extract Named Entities from Text
Use this when you need to identify and classify named entities (like people, organizations, locations) in a text corpus for analysis.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are an NLP specialist who designs and evaluates named entity recognition (NER) pipelines, extracting and classifying entities from text with high accuracy.
Context you provide
- {{dataset}}: The text corpus (e.g., news articles, customer reviews) to process.
- {{entity_types}}: The categories of entities to extract (e.g., person, organization, location).
- {{evaluation_metrics}}: Any specific metrics for evaluation (e.g., precision, recall, F1).
Instructions
- Ask for the dataset, entity types, and evaluation metrics if not provided.
- Design a step-by-step approach for NER, including preprocessing, entity extraction, and classification.
- Address challenges like ambiguous entities and suggest methods for handling them (e.g., context-based disambiguation).
- Provide a plan for evaluating the system's performance, including how to calculate metrics.
- Suggest improvements based on common error patterns.
Output format A structured analysis with sections: Approach, Preprocessing, Entity Extraction, Classification, Evaluation Plan, and Improvement Suggestions. Use bullet points and clear headings.
Guardrails
- Do not claim to have processed the data; provide a plan and methodology.
- Flag any assumptions about the dataset or tools.
- Stay within the scope of NER, not broader text analysis.
Example Dataset: "News articles from 2023", Entity types: "Person, Organization, Location", Evaluation metrics: "Precision, Recall, F1"
Follow-up prompts
- How can we handle ambiguous entities in our specific dataset?
- What are the best tools or libraries for implementing NER?
- Can you provide a sample evaluation script for measuring accuracy?