朴素贝叶斯做文本分类

Date Tags nlp / sklearn
In [1]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

加载查看数据

In [2]:
df = pd.read_csv('/Users/spark/Downloads/Restaurant_Reviews.tsv',sep='\t')
In [3]:
df.head()
Out[3]:
more ...