Practice: Search Engine#

Consider the corpus with the following documents (file name shown above text of file)

doc1.txt

Dogs are the greatest pets.

doc2.txt

Cats seem pretty okay.

doc3.txt

I love dogs!

Recall that the search engine will be case-insensitive and remove punctuation.

Question 0#

(Select all that apply) Which files would appear in the query

dogs

Your Task

Select one or more options. Write your answer down in your own space.

Option 0

doc1.txt

Option 1

doc2.txt

Option 2

doc3.txt

Option 3

None

Question 1#

(Select all that apply) Which files would appear for the query: test

Your Task

Select one or more options. Write your answer down in your own space.

Option 0

doc1.txt

Option 1

doc2.txt

Option 2

doc3.txt

Option 3

None

Question 2#

(Select all that apply) A later part of your assignment asks you to extend your SearchEngine to handle multi-word queries . A multi-word query is just a query that has more than one word in it like

greatest love

The rule for multi-word queries is you should return all documents that have at least one of the query words in it. What are the documents returned by this query above?

Your Task

Select one or more options. Write your answer down in your own space.

Option 0

doc1.txt

Option 1

doc2.txt

Option 2

doc3.txt

Option 3

None