Skip to content

Instantly share code, notes, and snippets.

@geoffwoollard
geoffwoollard / spam_classifier.py
Created May 16, 2016 19:57 — forked from anishmashankar/spam_classifier.py
Developing a Naive Bayes Classifier for Spam Detection in Python
#Author: Anish Mashankar
#website: anishm.co
import random
import time
import nltk
from textblob import TextBlob
from nltk.corpus import stopwords
from text.classifiers import NaiveBayesClassifier
def get_list_tuples(read_file):
list_tuples = []