A Lexicon and Machine Learning based analysis for the given Kannada text or file with graph visualization powered by NodeJS and Django based Restful-API server.
The given below commands can be used to set up the environment and run the project for both API-Server and web. To run the project 2 terminals should be opened one for NodeJs and the other for Django commands.
To run the web interface of the project, The following Commands must be typed in the Terminal/Powershell.
To Install NodeJS and NPM :
$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt-get install npm
To Run the project:
$ cd kn-SA-web/
$ npm install
$ npm start
To run the Django API server, The following Commands must be typed in the Terminal/Powershell.
To Activate the Virtual Environment and Install Django :
$ cd kn-SA-API/
$ pipenv shell
$ pip install -r requirements.txt
To Run The Server :
$ cd kn-SA-API/
$ python manage.py runserver
Now, open your Web-Browser and type-in
http://127.0.0.1:3000/
Alternatively, A bash script is written to automate the installation process of the project. Execute this script only after nodejs,npm and pip are installed.
chmod +x installation.sh
./installation.sh
NOTE:
- The written bash scirpt is to be executed only after nodejs , npm and pip are installed otherwise, The script may not work.
- This script only works for pip virtutal environment and not any other virtual environment.
Step 1 : The Dataset of the project can be downloaded here : https://www.kaggle.com/kushtej/kannada-lexicon-dataset/
Step 2 : Move the kn-lexicon.json
file to /kn-SA-API/api/kn-lexicons/
.
OR
$ mv kn-lexicon.json /kan-SA-API/api/kn-lexicons/
The Following is the sequence diagram of the Application :
This Project is licenced under MIT License.