Steps to run the code :
- Move into the UI folder : cd UI
- Install dependencies for Node JS : npm install
- Run the app : npm start
- Now navigate outside of the folder from another tab
- Run the python code : python3 autoComplete.py
- Now go to browser and type http://localhost:3003 to open the application
- Start playing around with the application. You can type any question from input/sentence.txt file
Note : Sometimes it might not work as expected, please feel ftee to edit the code and improve the stability of application.
Core Idea's :
- Tried using co-occurrence matrix to predict the next word in a sentence
- Used TRIE data structure to predict a word from character typed in