Text Normalization in CBSE Class 10 AI (Code 417) cleans unstructured raw text into a standardized vocabulary before Bag of Words or TF-IDF modeling. The five prescribed board steps are: (1) Sentence Segmentation, splitting a corpus into individual sentences; (2) Tokenization, breaking sentences into words and punctuation tokens; (3) Removing Stopwords, Special Characters, and Numbers; (4) Converting text to a common case (lowercase); and (5) Stemming or Lemmatization to reduce inflected words to their root form.
- 1. Sentence Segmentation and Tokenization: Breaking the Corpus
- 2. Stopword Removal, Special Characters, and Case Folding
- 3. Root Reduction: Applying Stemming or Lemmatization
- 4. 5-Step CBSE Text Normalization Pipeline in Python
- 5. Worked Example: 5 Steps of Text Normalization on a Sample Corpus
- 6. Common Mistakes & Top Scorer Tips
- 7. Interactive Concept Check Quiz
- 8. Frequently Asked Questions
1. Sentence Segmentation and Tokenization: Breaking the Corpus
Raw text enters an NLP pipeline as a continuous block of paragraphs called a corpus. Step 1, Sentence Segmentation, divides the whole corpus into discrete sentences using boundary delimiters such as full stops, question marks, or exclamation points so each statement becomes an independent document. Step 2, Tokenization, splits every segmented sentence into smaller units called tokens—typically individual words, numbers, and punctuation symbols separated by whitespace. Why does CBSE Code 417 Part B emphasize separating these two stages before filtering? Because sentence-level document boundaries govern downstream document frequency counts in Bag of Words and TF-IDF matrices. For example, keeping 'AI.' and 'AI!' distinct during raw tokenization would inflate vocabulary size unless punctuation is isolated cleanly first. Splitting cleanly ensures later steps act uniformly on discrete word strings.
- Corpus = entire raw collection of text; Document = one segmented sentence or record.
- Tokenization breaks each sentence into discrete word, number, and punctuation tokens.
- Clean boundary splitting prevents trailing punctuation from corrupting word matching.
2. Stopword Removal, Special Characters, and Case Folding
Once a sentence is tokenized, Step 3 eliminates high-frequency words that carry grammatical glue rather than topical meaning—known as stopwords ('is', 'the', 'and', 'in', 'to'). In addition to stopwords, CBSE board solutions strip special characters (@, #, !) and stray digits unless the problem statement specifies keeping numeric entities such as exam codes or prices. Step 4 performs Case Conversion, transforming every surviving token into lowercase so 'Learning', 'LEARNING', and 'learning' merge into a single dictionary entry rather than three redundant columns. Watch carefully for case-before-stopword order in manual exams: if 'The' starts a sentence and your stopword list only holds lowercase 'the', failing to lowercase early leaves 'The' trapped inside your final dictionary and distorts your frequency table.
- Stopwords add high corpus frequency with minimal topic discrimination.
- Case folding merges uppercase, title-case, and lowercase variants into one token.
- Check exam prompts carefully before discarding numbers that carry domain meaning.
3. Root Reduction: Applying Stemming or Lemmatization
Even after lowercasing and pruning stopwords, English words still appear in varied grammatical inflections such as 'studying', 'studied', and 'studies'. Step 5 resolves this variation by mapping related words to a shared base representation using either Stemming or Lemmatization. Stemming applies fast heuristic suffix-stripping rules—turning 'studying' into 'studi' or 'playing' into 'play'—which reduces vocabulary size quickly though sometimes leaving non-dictionary stems. Lemmatization instead consults a lexical dictionary and morphological analysis to return a valid root word (lemma), converting 'studies' and 'better' to 'study' and 'good' respectively. In CBSE Class 10 AI board numericals, always state whether you applied stemming or lemmatization so examiners can verify your final normalized token list without ambiguity during Part B grading.
- Stemming cuts common suffixes rapidly but may produce non-dictionary roots.
- Lemmatization resolves words to valid dictionary lemmas using lexical lookup.
- Both techniques shrink vocabulary dimensionality before building BoW vectors.
4. 5-Step CBSE Text Normalization Pipeline in Python
import re
corpus = "The students are studying AI! Are they enjoying learning?"
stopwords = {"the", "are", "they"}
# Step 1: Sentence Segmentation
sentences = [s.strip() for s in re.split(r"[.!?]+", corpus) if s.strip()]
print("1. Segmented:", sentences)
# Step 2-4: Tokenization, Lowercase, Clean Special Chars & Stopwords
cleaned = []
for s in sentences:
tokens = re.findall(r"[a-z]+", s.lower())
filtered = [t for t in tokens if t not in stopwords]
cleaned.append(filtered)
print("2-4. Filtered:", cleaned)
# Step 5: Simple Suffix Stemming
def stem(word):
for suf in ("ing", "s"):
if word.endswith(suf) and len(word) > len(suf) + 2:
return word[:-len(suf)]
return word
normalized = [[stem(w) for w in doc] for doc in cleaned]
print("5. Stemmed:", normalized)
Verified Console / Dry-Run Output:
1. Segmented: ['The students are studying AI', 'Are they enjoying learning']
2-4. Filtered: [['students', 'studying', 'ai'], ['enjoying', 'learning']]
5. Stemmed: [['student', 'study', 'ai'], ['enjoy', 'learn']]
5. Worked Example: 5 Steps of Text Normalization on a Sample Corpus
| Step # | Normalization Stage | Rule Applied | Output on Sample Text |
|---|---|---|---|
| 1 | Sentence Segmentation | Split corpus at '!' and '?' delimiters | ['The students are studying AI', 'Are they enjoying learning'] |
| 2 | Tokenization | Break each sentence into discrete word tokens | [['The','students','are','studying','AI'], ['Are','they','enjoying','learning']] |
| 3 & 4 | Case Conversion + Stopwords | Convert to lowercase and remove {'the', 'are', 'they'} | [['students', 'studying', 'ai'], ['enjoying', 'learning']] |
| 5 | Stemming (Suffix Removal) | Strip suffixes ('ing', 's') to obtain root tokens | [['student', 'study', 'ai'], ['enjoy', 'learn']] |
Master CBSE 417 Text Normalization With Guided Practice
Join a free 1-on-1 or 1:4 Micro-Pod CBSE AI session at 4Achievers Junior (Grades 3-12) to master Code 417 Text Normalization and Python regex labs.
6. Common Mistakes & Top Scorer Tips
- Avoid Mistake: Forgetting to lowercase tokens before checking against a lowercase stopword list, leaving capitalized 'The' or 'And' inside the final dictionary.
- Avoid Mistake: Skipping Sentence Segmentation and treating an entire multi-sentence paragraph as one flat document during Bag of Words counts.
- Avoid Mistake: Deleting domain-critical numbers blindly when the task explicitly requires retaining years, prices, or model codes.
- Avoid Mistake: Mixing up Tokenization (splitting a sentence into words/symbols) with Sentence Segmentation (splitting a corpus into sentences).
- Examiner / Mentor Tip: Always show the intermediate output after each of the 5 steps when solving a 4-mark Text Normalization numerical in Part B.
- Examiner / Mentor Tip: Mention explicitly which stopwords you removed so the CBSE evaluator sees consistent token counts.
- Examiner / Mentor Tip: Remember the CBSE definition of Corpus: the collection of all text across every document in the dataset.
7. Interactive Concept Check Quiz
Question: Which sequence correctly represents the opening two stages of Text Normalization in CBSE Class 10 AI (Code 417)?
8. Frequently Asked Questions
Does case conversion have to happen after stopword removal in CBSE exams?
Why do we remove stopwords if they are valid English words?
Are punctuation marks considered tokens during Step 2 Tokenization?
Why is Text Normalization mandatory before Bag of Words?
Explore Related Lessons & Free Interactive Tools
- All 60 Guides in CBSE AI (417 & 843) Guide Hub
- Stemming vs Lemmatization: Comparison Table & Word Output Examples
- Bag of Words (BoW) Algorithm: Step-by-Step Solved Board Numerical
- TF-IDF Formula & Solved Numerical Example for CBSE AI (417 / 843)
- Interactive Tool: CBSE AI 417 Confusion Matrix & F1 Score Calculator
- Interactive Tool: CBSE Class 10 Best-of-5 Marks Replacement Calculator
