The code includes:
- Creation of feature vectors using ngrams technique
- Using those feature vectors to train a model (SVM) for sentimental analysis
3 Datasets are provided that can be used as training and testing sets.
To run the code:
- Open CMD
- python 'ngrams.py' 'INPUT FILE NAME.EXT' N
- n is the window size where 1<n<6
- python 'ngrams.py' 'INPUT FILE NAME.EXT' N