Anda di halaman 1dari 3

PDS 417: Elective 3 (Unstructured Data Analysis)

Batch 4C – Part time – Quiz 1

Name: Ravi Dutt Ramanujapu Roll No. 18125770007

Instructions:

1) Please submit the same file with your answer in LMS and do mention your name and roll
number.
2) Quiz duration is 1 hour.
3) Quiz have 2 parts – Part 1 – 3 questions and Part 2 – 2 question.

Part1: (2 marks each)

Refer the following document term matrix:

Answer the following:

1) Which are the most common and the rarest term of the corpus?
a. t4, t6
b. t3, t5
c. t5, t1
d. t5, t6

Fill your answer here ____t5,t6__________________

2) What is the term frequency of a term which is used a maximum number of times in that
document?
a. t6 – 2/5
b. t3 – 3/6
c. t4 – 2/6
d. t1 – 2/6

Fill your answer here ___________t3-3/6___________


3) Which of the following documents contains the same number of terms and the number of
terms in the one of the documents is not equal to least number of terms in any document in
the entire corpus.
a. d1 and d4
b. d6 and d7
c. d2 and d4
d. d5 and d6

Fill your answer here _____d2 and d4_________________

Part 2: (total 4 marks)

Using the below documents:

document1 = "Python is a 2000 made-for-TV horror movie directed by Richard Clabaugh. The film
features several cult favorite actors, including William Zabka of The Karate Kid fame, Wil Wheaton,
Casper Van Dien, Jenny McCarthy, Keith Coogan, Robert Englund (best known for his role as Freddy
Krueger in the A Nightmare on Elm Street series of films), Dana Barron, David Bowe, and Sean
Whalen. The film concerns a genetically engineered snake, a python, that escapes and unleashes
itself on a small town. It includes the classic final girl scenario evident in films like Friday the 13th. It
was filmed in Los Angeles, California and Malibu, California. Python was followed by two sequels:
Python II (2002) and Boa vs. Python (2004), both also made-for-TV films."

document2 = "Python, from the Greek word (πύθων/πύθωνας), is a genus of nonvenomous pythons
found in Africa and Asia. Currently, 7 species are recognised. A member of this genus, P. reticulatus,
is among the longest snakes known."

document3 = "The Colt Python is a .357 Magnum caliber revolver formerly manufactured by Colt's
Manufacturing Company of Hartford, Connecticut. It is sometimes referred to as a "Combat
Magnum". It was first introduced in 1955, the same year as Smith & Wesson's M29 .44
Magnum. The now discontinued Colt Python targeted the premium revolver market segment. Some
firearm collectors and writers such as Jeff Cooper, Ian V. Hogg, Chuck Hawks, Leroy Thompson,
Renee Smeets and Martin Dougherty have described the Python as the finest production revolver
ever made."

Find the following:

1) Top 3 words unigram based on TF-IDF for document 3. Fill your answers below: (2marks)

a. Magnum,
b. Revolver,
c. Python

(TF-IDF:0.01382)
2) The difference between the TF-IDF weightage of word films and film in document 1. Fill your
answer below: (2marks)
a. .00332

Anda mungkin juga menyukai