Class 7 · CBSE AI · Strand C — NLP, Vision, and LLMs Deep-Dive
What is sentiment analysis? Building one — for Class 7
How AI decides if text is positive, negative or neutral — one of the most-used NLP tasks. For Class 7.
Class 7 · CBSE AI · Strand C — NLP, Vision, and LLMs Deep-Dive
How AI decides if text is positive, negative or neutral — one of the most-used NLP tasks. For Class 7.
Exam paper correction
Imagine grading essays by counting how many times students wrote 'good' or 'bad' — you'd completely miss the student who wrote 'Not bad at all!' meaning they loved it, or the one who wrote sarcastically 'Oh, absolutely brilliant.' A good teacher reads the whole meaning. Sentiment analysis has the same challenge.
Monsoon season — complaints vs. appreciation
In India, someone saying 'The monsoon has really come down on us this year' could be a joyful farmer or a flooded shopkeeper. The same words carry opposite sentiments depending on who's speaking. Teaching an AI which is which requires knowing who the speaker is — not just what they said.
Every Dhee Learning session for this concept follows three stages. We share the questions Dhee actually asks, so you can hear what a session sounds like.
Stage 1 — Surface
A restaurant app wants to automatically sort customer reviews into 'happy' and 'unhappy'. Before building anything, what are three things that could go wrong if you just taught the AI 'good words = positive, bad words = negative'?
Rote answer
"Sentiment analysis checks if a review is positive or negative."
Understood
"Someone could write 'Oh wow, the food took only two hours to arrive — amazing!' sarcastically. The words 'amazing' and 'wow' are technically positive but the meaning is negative. A word-list approach would get this completely wrong."
Stage 2 — Reasoning
If your sentiment analyser was trained mostly on English reviews from Mumbai, why might it perform poorly on reviews written in Hinglish from Jaipur — even if both are about the same restaurant chain?
Follow-up Dhee may use: How would you fix this — would you collect more data, change the model, or something else entirely?
Stage 3 — Application
You're asked to build a sentiment tool that monitors social media posts about a school's new canteen menu. Design the three biggest decisions you'd need to make before writing any code.
Misconception Dhee watches for: Jumping straight to 'use an existing sentiment API' without questioning whether that API's training data matches school-student language and context.
Dhee turns this concept into a 15-minute spoken session — asking, listening, and probing — so your child builds the idea themselves.
How AI decides if text is positive, negative or neutral — one of the most-used NLP tasks. For Class 7.
More positive words than negative words in a sentence always means positive sentiment — negation, sarcasm, and intensifiers can completely invert this.
Dhee opens with a question — for example: "A restaurant app wants to automatically sort customer reviews into 'happy' and 'unhappy'. Before building anything, what are three things that could go wrong if you just taught the AI 'good words = positive, bad words = negative'?" — listens to your child's answer, then probes the reasoning behind it. The session ends when the child can apply the idea to a brand-new situation, not just recall it.