[SOLVED] AIE314 Lab Exercise 1- Very Simple Search Engine

35.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

 

In this lab exercise, you will create a very simple search engine using some text analysis and dictionary based approach.
a. Find how many
i. lines/sentences are there
ii. words are there
iii. characters are there (space character excluded)
b. Create a vocabulary (list of unique words) from the text.
c. List the words in the vocabulary along with their frequency (count).
2. Given five text files {f1.txt, f2.txt…..}.
a. Get an input search query from the user. List out files in descending order of similarity.
Hint: The dictionary/vocabulary approach implemented in Q1 can be used. One vocabulary for all text. Create a similarity measure, such as the number of words common, to get the search results.
Advanced Optional :
3. If two documents have same similarity counts use frequencies of each word too.
4. The out-of-vocabulary (words in search query not in the vocabulary) words should be handled.

21AIE314 AI in Natural Language Processing

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.