Skip to content

Lexicon and ML Sentiment Analysis for kannada Language.

License

Notifications You must be signed in to change notification settings

kushtej/kn-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kannada Sentiment Analysis

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.

Installation

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.

NodeJS

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

Django

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:https://127.0.0.1:3000/

Alternate Method:Installation using Bash Script (Experimental)

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.

Steps to execute the bash script:

  • 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.

Dataset :

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/

UML diagram

The Following is the sequence diagram of the Application :

License

This Project is licenced under MIT License.

Project Contributors