https://drive.google.com/file/d/1Ritj6hxiE8nnnjm41yCOdBL8l_r_PMwc/view?usp=sharing
Tkinter Nltk Numpy Pandas Pickle
Data collection - Data has been taken from Kaggle (Amazon Fine Food Reviews Dataset) Preprocessing - Preprocessing and ranking has been done in ranking.py Ranking - The result from calculating TF-IDF scores has been pickled in tf_idf_scores.pkl Querying - Querying is done in querying.py Spell checking (query - For spell checking, I build a basic spell checker which uses the Levenshtein edit distance concept and basic probabilty Tkinter UI - Tkinter UI for querying
- Please make sure that you have all the necessary libraries installed on your local machine
- Navigate to the folder in which querying.py is present
- To run the code enter "py querying.py" if using Python3 or "python querying.py" if using Python2
- Then after a couple of seconds a Tkinter window will popup
- Fill in the prompts in the respective text boxes Eg: "dog food" in the query and "5" for the number of results (as desired)
- Then click on the "Show" button to get the results
- Click on the "Quit" button when done
For more details on the implementation: Refer to the document here