An Efficient Information Retrieval System for the Indian Political Sentiments on Reddit.
- Install Solr 9.1.1 and a Java>=13 <=19 and set up Java home variable appropriately.
- Start Solr on cloud mode :
Windows:
bin/solr.cmd start -cloud
Linux:
bin/solr start -cloud
By default, the solr will be serving on http://localhost:8983 if available.
- Start Solr in Cloud mode.
- Check the "Test ConfigSet" request on this collection: https://interstellar-comet-46866.postman.co/workspace/New-Team-Workspace~65626761-938b-4a33-85be-f73afd0c8592/collection/9115718-98f32580-ff87-435d-9aa7-348344f0aec8?action=share&creator=9115718. Copy the request to your local (desktop) Postman; note the query params, and headers.Then in body, switch to binary mode, and select modified_configset.zip file to upload. Then send request.
Alternatively note the request details below, and run the request on Postman: Type: GET
http://localhost:8983/solr/admin/configs?action=UPLOAD&name=myConfigSet&overwrite=true
Headers:
Content-Type = application/octet-stream
Body: Binary Mode: Zip File Upload
- Check the "List configsets" on the same collection above. Run the request, and confirm that the confg set "myConfigSet" has been added.
- Place crawled_corpus.json and keywords.json in the
outputsdirectory of the root folder. - Run lazy_build_db.py
- Install Requirements on a Python==3.9 or 3.10 environment.
pip install -r requirements.txt
-
Create a
.envfile in the root directory. A sample can be found in.env.sample. Ensure that the correct API Keys (reddit) and Syspath are used. -
Run
main.py
python main.py
- Install Requirements on a Python==3.9 or 3.10 environment.
pip install -r requirements.txt
-
Create a
.envfile in the root directory. A sample can be found in.env.sample. Ensure that the correct API Keys (reddit) and Syspath are used. -
Export the Flask App from the root directory using:
export FLASK_APP=flask_app/app.py
- Start the Flask Server:
flask run
The app should be serving on http:\\localhost:5000
- Install the dependencies
npm install
- Start the Server
npm start
The app should be serving on http:\\localhost:3000
The README for classification in the classification_model folder.