Prompt lesson · 17 prompts
Natural Language Processing Techniques prompts for Data Scientists
17 ready-to-use prompts from our AI for Data Scientists course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
Analyze Sentiment in Text
Use this when you need to determine the sentiment or emotion expressed in text data, such as customer reviews, social media posts, or support tickets.
Role You are a data scientist specializing in sentiment analysis, optimizing for accurate classification of emotions and actionable insights from text.
Context you provide
- {{text_data}}: The text you want to analyze (e.g., customer reviews, social media posts, support tickets).
- {{sentiment_categories}}: (Optional) The categories to classify into (e.g., positive, negative, neutral).
- {{analysis_goal}}: The purpose of the analysis (e.g., improve customer service, inform marketing strategy).
Instructions
- If the text data is not provided, ask for it before proceeding.
- Analyze the sentiment of each piece of text, classifying it into the specified categories (default: positive, negative, neutral).
- Provide a summary of the overall sentiment distribution, highlighting any patterns or trends.
- If the analysis goal is given, tailor the insights to that goal (e.g., suggest improvements for customer service).
- Present the results in a structured format, such as a table or chart description, with sentiment scores if applicable.
Output format Provide a clear breakdown of sentiment categories with counts or percentages, followed by a narrative summary of key insights. Use a professional, data-driven tone.
Guardrails Do not overstate confidence in sentiment classifications; acknowledge ambiguity. Stay within the provided text data and categories. Avoid making unsupported claims about the reasons behind sentiment.
Example Text data: 'The product is great but the delivery was slow.'; Sentiment categories: positive, negative, neutral; Analysis goal: improve customer service.
Open this prompt Analysis · Intermediate
Answer Questions from Context
Use this when you need to generate accurate answers to questions based on a given context or knowledge base.
Role You are an AI research assistant specialized in question answering, optimizing for precise, context-grounded responses.
Context you provide
- {{context}}: The text or knowledge base that contains the answer.
- {{question}}: The specific question you want answered.
- {{answer_style}}: (Optional) The desired length or format of the answer (e.g., concise, detailed).
Instructions
- If the context or question is missing, ask for it before proceeding.
- Read the provided context carefully and identify the information relevant to the question.
- Formulate an answer based solely on the context, avoiding external knowledge unless explicitly allowed.
- If the context does not contain the answer, state that clearly and suggest what additional information might help.
- Tailor the answer's length and detail to the requested style, defaulting to a balanced, informative response.
Output format Provide a direct answer to the question, followed by a brief explanation of how the context supports it. Use a clear, factual tone.
Guardrails Do not fabricate information not present in the context. If the question is ambiguous, ask for clarification. Stay within the scope of the provided context.
Example Context: 'The Eiffel Tower is located in Paris, France, and was completed in 1889.'; Question: 'Where is the Eiffel Tower located?'
Open this prompt Research · Intermediate
Chatbot Development Guidance
Use this when you need to design and train a chatbot for customer inquiries, recommendations, or troubleshooting.
Open this prompt Planning · Advanced
Content Moderation Classifier
Use this when you need to design a text classification system for content moderation, such as detecting offensive, inappropriate, or spam content.
Open this prompt Planning · Advanced
Contextual Text Generation
Use this when you need to generate coherent, contextually relevant text for various purposes like product descriptions, emails, blog posts, or dialogues.
Open this prompt Creating · Beginner
Enhance Text with Language Modeling
Use this when you need to integrate language modeling capabilities like auto-completion, spell checking, or grammar correction into your applications.
Open this prompt Creating · Intermediate
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.
Open this prompt Analysis · Intermediate
Intent Recognition System Design
Use this when you need to build or improve an intent recognition system for user inputs.
Open this prompt Learning · Advanced
Language Translation Workflow
Use this when you need a thoughtful translation that preserves meaning, tone, and cultural context.
Open this prompt Creating · Beginner
Structured Text Extraction
Use this when you need to extract specific information (like names, dates, emails, or keywords) from unstructured text.
Open this prompt Analysis · Intermediate
Tag Parts of Speech in Text
Use this when you need to assign grammatical tags (e.g., noun, verb, adjective) to words in a sentence for linguistic analysis or NLP tasks.
Open this prompt Analysis · Beginner
Targeted Sentiment Analysis
Use this when you need to analyze sentiment towards a specific target or topic in text data, such as product mentions or social media posts.
Open this prompt Analysis · Intermediate
Text Classification System Design
Use this when you need to build or improve a text classification system for categorizing text into predefined labels.
Open this prompt Planning · Intermediate
Text Similarity and Clustering
Use this when you need to measure similarity between texts or group similar texts for analysis, recommendation, or search.
Open this prompt Analysis · Advanced
Text Summarization
Use this when you need to condense long documents, articles, or reports into concise, key-point summaries.
Open this prompt Analysis · Beginner
Text-to-Speech Conversion
Use this when you need to convert written text into natural-sounding speech for applications like audiobooks, voice assistants, or accessibility features.
Open this prompt Creating · Advanced
Topic Modeling
Use this when you need to discover the main themes or topics in a large collection of texts.
Open this prompt Analysis · Intermediate