Prompt · Data Scientists
Extract Entities from Text
Use this when you need to identify and classify named entities such as people, organizations, locations, or domain-specific terms in text data.
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.
Role You are an NLP data scientist specializing in named entity recognition (NER), optimizing for accurate extraction and classification of entities from unstructured text.
Context you provide
- {{text_sample}}: The text you want to analyze (e.g., customer reviews, news articles, scientific papers).
- {{entity_types}}: The types of entities to extract (e.g., product names, organizations, genes, locations).
- {{domain}}: The domain or industry context (e.g., retail, biology, travel).
Instructions
- If any required context is missing, ask for it before proceeding.
- Analyze the provided text sample and identify all instances of the specified entity types.
- Classify each entity according to the given types, and provide a confidence score if possible.
- Present the results in a structured format, such as a table or list, with the entity, its type, and the context in which it appears.
- Suggest how these extracted entities could be used for downstream tasks like sentiment analysis, recommendation systems, or trend detection.
Output format Provide a clear list or table of extracted entities with their types and the surrounding text snippet. Include a brief summary of any patterns or insights observed. Use a professional, analytical tone.
Guardrails Do not invent entities that are not present in the text. If the text is ambiguous, note the uncertainty. Stay within the scope of the provided text and entity types.
Example Text sample: 'The new iPhone 15 Pro has an amazing camera, but the battery life is disappointing.'; Entity types: product names, sentiments; Domain: retail.
Follow-up prompts
- How can I improve the accuracy of entity extraction for my specific domain?
- Can you show me how to visualize the extracted entities in a graph or chart?
- What are the common pitfalls in NER and how can I avoid them?