Skip to content

A Simple Sinhalese sentiment anaylser using the SVM algorithm

Notifications You must be signed in to change notification settings

rifhanakram/sinhala-sentiment-analyser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinhalese Sentiment Analyzer

A Simple Sinhalese sentiment anaylzer using the SVM algorithm from scikit learn

Note : This application is still in a primitive stage and does have various flaws which will be addressed incrementally in future versions. The testing data is fed from the test.txt file, and the training data set is fed from the trainData directory which consists of sub directories for each of its classes

Dependencies

-python 2.7
-numpy 1.11.1
-scipy 0.18.0
-scikit-learn 0.17.1

Installation

$ pip install sklearn 

Usage

#run the default tests
$ python main.py
#run a specific file with tests
$ python main.py -f <filename>
#run a specific test from command line
$ python main.py -s <sentence>

About

A Simple Sinhalese sentiment anaylser using the SVM algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages