Skip to content

Instantly share code, notes, and snippets.

View STHITAPRAJNAS's full-sized avatar
💭
I may be slow to respond.

Sthitaprajna Sahoo STHITAPRAJNAS

💭
I may be slow to respond.
View GitHub Profile
@STHITAPRAJNAS
STHITAPRAJNAS / sentiment.py
Created June 22, 2017 14:12 — forked from bbengfort/sentiment.py
An end-to-end demonstration of a Scikit-Learn SVM classifier trained on the positive and negative movie reviews corpus in NLTK.
import os
import time
import string
import pickle
from operator import itemgetter
from nltk.corpus import stopwords as sw
from nltk.corpus import wordnet as wn
from nltk import wordpunct_tokenize