Skip to content

Instantly share code, notes, and snippets.

View mjahanshahi's full-sized avatar

Maryam mjahanshahi

View GitHub Profile
### Keybase proof
I hereby claim:
* I am mjahanshahi on github.
* I am maryamj (https://keybase.io/maryamj) on keybase.
* I have a public key ASDNl0GgSnwIGehStxhIpZZeVrA-U4Clk_o8RmDTPi7tNgo
To claim this, I am signing this object:
@mjahanshahi
mjahanshahi / sentiment.py
Created August 3, 2017 22:06 — 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