📚 CBSE Grade-10 Study Guide Open in the Study Guide single page app →
HomeArtificial Intelligence

Artificial Intelligence — CBSE Class 10 board question

Q1. [4]
Consider the text of following documents: Document 1: Sahil likes to play cricket Document 2: Sajal likes cricket too Document 3: Sajal also likes to play basketball Apply all the four steps of Bag of words model of NLP on the above given documents and generate the output.
Previously asked in CBSE board exam
2022 104 Q19
Generated by claude-sonnet-4-6 · 2026-06-21 03:18 · grounding rag
Model Answer

Step 1: Collect Data (Documents)

Step 2: Create a List of Unique Words (Vocabulary)
{sahil, likes, to, play, cricket, sajal, too, also, basketball}
(9 unique words)

Step 3: Remove Stop Words (optional normalisation)
Stop words like "to", "too", "also" may be removed → Vocabulary: {sahil, likes, play, cricket, sajal, basketball}

Step 4: Create Document Vectors (Frequency Table)

| Word | Doc1 | Doc2 | Doc3 |
|----------|------|------|------|
| sahil | 1 | 0 | 0 |
| likes | 1 | 1 | 1 |
| play | 1 | 0 | 1 |
| cricket | 1 | 1 | 0 |
| sajal | 0 | 1 | 1 |
| basketball | 0 | 0 | 1 |

Each document is now represented as a numerical vector based on word frequency.

Source: Chapter 6, Bag of Words Model

---

Explanation
If a question refers to an image, map, graph or diagram that is not shown here, open the Study Guide single page app, go to Library and find the actual CBSE question paper. The original papers are also available on the CBSE website: cbse.gov.in.
Previous-year CBSE Grade 10 board exam questions, organised by subject and chapter, each with a model answer — free to read and print.