python

Text classification with python nlp classifier

Build Your First Text Classifier in Python with Logistic Regression

Text classification is the automatic process of predicting one or more categories given a piece of text. For example, predicting if an email is legit or spammy. Thanks to Gmail’s spam classifier, I don’t see or hear from spammy emails! Other than spam detection, text classifiers can be used to determine sentiment in social media …

Build Your First Text Classifier in Python with Logistic Regression Read More »

python code snippets - cheat sheet

My Python Cheat Sheet

These are some python code snippets that I use very often. Topics include: list manipulation, json manipulation, data frame and etc. Python List Manipulation Concatenate two python lists listone = [1,2,3] listtwo = [4,5,6] joinedlist = listone + listtwo Convert a python string to a list of characters word = ‘abc’ the_list = list(word) JSON …

My Python Cheat Sheet Read More »