What students will learn
Words → TokensCleaning + tokenization
StopwordsRemove common “low-meaning” words
SimilarityCosine similarity of two sentences
✅ Web demo works with Live Server / localhost.
✅ Python examples run directly in VS Code terminal.
⚠️ Translation is a small offline demo dictionary (real translation
needs models/APIs).
Playground: Words, Sentences, Stopwords
Output
Click “Analyze”.
Synonyms / Antonyms (demo)
Try: understand, help, important, happy, difficult, fast
Ready.
Cosine Similarity (Bag-of-Words)
This compares two sentences using word-count vectors (simple but good for learning). Score: 0 (different) → 1 (similar).
Cosine result
Click “Compute Cosine”.
Vectors
Click “Show Vectors”.
Translation Demo (English ↔ Hindi)
Output…
Output…
Reality: Hindi grammar + word forms are complex. This is a tiny dictionary demo for classroom.
Charts
Analyze + cosine will update charts.
Token Counts
Cosine Similarity