Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

search_engine

Screen_Recording_2023-06-24_at_11_11_52_PM_AdobeExpress

The file should include mileStone1.py, mileStone2.py, calculateTFIDF.py, app.py, /DEV and /templates

Installation:

The following packages are commonly not installed on machines and may need to be installed on your local system in order to run the file (though there may be more):

  • ntlk: Porter Stemmer
  • bs4: BeautifulSoup
  • psutil
  • simhash
  • flask
  • stop_words

Also, python3 should be installed on your machine.

Usage:

Step 1: mileStone1.py : creates the index of index and partial indexes and merges the partial indexes.

In the terminal, run python3 mileStone1.py. This usually takes around 90 minutes.

Step 2: calculateTFIDF.py : creates the tf-idf scores for each document in the full index (outputs as full_index_tf_idf.txt). Also updates the index of index (outputs as index_of_index_tf_idf.txt).

In the terminal, run python3 calculateTFIDF.py. This usually takes around 20 minutes.

Step 3: app.py : runs the search using search from mileStone2.py which renders the search input to index.html.

Once a search is performed, it renders the result to results.html and waits for another query input.

Perform a query by typing in the text box on the GUI and returning.

In the terminal, run python3 app.py.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages