nishitmehta1 / ngrams-from-scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ngrams from scratch

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

About


Languages

Language:Python 100.0%