Internal-I 2024-25
Internal-I 2024-25
BTL Mapped
Questio Mark
Description of the question (1/2/3/4/
n No. s
5/6) CO PO PSO
Part - A (6 × 1 Marks: 06) Answer all questions
1. What is regular expression? write it’s importance.
1 1 1 1 3
2. If a sentence has 7 words, how many bigrams can be formed? 1 1 1 1 3
3. Calculate the cosine similarity between two vectors A = [1, 2] and B = [2, 4]. 1 1 3 1 3
BTL Mapped
Questio Mark
Description of the question (1/2/3/4/
n No. s
5/6) CO PO PSO
Part - A (6 × 1 Marks: 06) Answer all questions
1. What is Tokenization in NLP? How many words are in the following sentence
1 1 1 1 3
after tokenization? "Natural Language Processing is amazing!"
2. Given the following unigram probabilities, compute the probability of "the 1 1 1 1 3
cat" using a bigram model:P(the) = 0.1, P(cat | the) = 0.5
3. What does POS tagging do in NLP? 1 1 2 1 3