Natural Language Processing
Natural Language Processing
Natural Language Processing
Install nltk
conda install -c anaconda nltk
Import Libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import os
Print Corpus
print (corpus)
Print Size
print (X.shape)
print (X_train.shape)
print (X_test.shape)
Prediction
y_pred = classifier.predict(X_test)
Print Result Actual and Predict
print(np.concatenate((y_pred.reshape(len(y_pred),1),
y_test.reshape(len(y_test),1)),1))