Code Monkey home page Code Monkey logo

python-for-text-classification's Introduction

Python for Text Classification

Python for Text Classification with Machine Learning in Python 3.6.

Installation Guide

Start your environment by picking either pipenv (recommended) or virtualenv. Simple guides are below.

Using pipenv

  1. Initialize pipenv (setup guide):
cd path/to/your/dev/folder
mkdir text-classify
cd text-classify
pipenv install --three

After installation of pipenv works, just activate it (same on all systems):

pipenv shell
  1. Project requirements
pip install numpy scipy scikit-learn jupyter

Using virtualenv

  1. Initialize virtualenv
cd path/to/your/dev/folder
mkdir text-classify
cd text-classify
virtualenv --python3 .

After installation of pipenv works, just activate it:

Mac / Linux

source bin/activate

Windows

.\Scripts\activate
  1. Project requirements
pip install numpy scipy scikit-learn jupyter

Lessons

1 - Introduction no code

2 - Initialize Virtual Environment with Pipenv

3 - Sublime Text & Jupyter Notebooks no code

4 - Bag of Words

5 - One Hot Array

6 - Bag of Words Function

7 - One Hot Array Function

8 - One Hot Array Back to Text

9 - Bag of Words with External Data

10 - One Hot Array with External Data

11 - Training Data and Labels as Numpy Arrays

12 - Train and Predict with Sklearn SVM

13 - Text Prediction Recap

14 - Reusable Sklearn Classifier

15 - Missing Bow

16 - Pickles no code

17 - Good Data In, Good Data Out no code

18 - Dataset Resources no code Blog Post

19 Grab and Parse Dataset

20 - Prepare Training Module for Spam + Not Spam

21 - Train Spam Classifier with SVC

22 - Clean and Predict

23 - Scoring Classifier Accuracy

24 - One Hot Encoding Classification Recap

25 - Preprocessing with a Keras Tokenizer

26 - Pad Sequences

27 - Convert Our Text Data into Sequences

28 - Labels and LabelEncoder

29 - Reusable Text-Label Utility

30 - Split Training and Validation Data

31 - Tokenized Text Classifier

32 - Cross Validation

33 - Sensitivity vs Specificity

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.