Skip to content

Instantly share code, notes, and snippets.

@sundisee
sundisee / sci_classifier.py
Created October 10, 2016 13:52 — forked from 2shou/sci_classifier.py
scikit-learn nb example
# coding: utf-8
import sys
import jieba
import numpy
from sklearn import metrics
from sklearn.feature_extraction.text import HashingVectorizer
from sklearn.naive_bayes import MultinomialNB