Use the package manager pip3 to install the requirements. Update apt if you are using EC2 Ubuntu instance.
sudo apt-get update
sudo apt install python3-pip -y
pip3 install tqdm Flask nltkrun_project.pyis the driver file, which will create the Flask app. Implement the logic for getting the postings list, executing DAAT AND query, merging linked list. etc. in this file.indexer.pycontains code to create and manipulate the index. Implement the necessary functions in indexer.preprocessor.pycontains code to pre-process documents & queries. Implement the necessary functions in preprocessor.linkedlist.pydefines the basic data structures for the postings list and the nodes of the postings list. It also contains code to manipulate the postings list. . Implement the necessary functions in linkedlist.- Execute
run_project.pyto create your index and start your API endpoint. Your endpoint will be available athttp://<ec2 public ipv4:9999>/execute_query
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.