{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "72bfa4f0-5c58-4b50-8bf5-bc05902aa527", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "import nltk\n", "from nltk.corpus import stopwords" ] }, { "cell_type": "code", "execution_count": 2, "id": "39a23503-8904-4786-96dd-c36b47f42944", "metadata": {}, "outputs": [], "source": [ "data = pd.read_csv('Movie_Review.csv')" ] }, { "cell_type": "code", "execution_count": 24, "id": "11f796bf", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | text | \n", "sentiment | \n", "
---|---|---|
0 | \n", "daughter liked aghast, character movie smokes.... | \n", "0 | \n", "
1 | \n", "I... words. words describe this. try sake brav... | \n", "0 | \n", "
2 | \n", "film basically poor take old urban legend baby... | \n", "0 | \n", "
3 | \n", "terrible movie, even sure terrible. ugly, one,... | \n", "0 | \n", "
4 | \n", "First movie piece reality well realized artist... | \n", "1 | \n", "
... | \n", "... | \n", "... | \n", "
995 | \n", "\"Campfire Tales\" basically made three spooky s... | \n", "1 | \n", "
996 | \n", "saw film phoenix film festival today loved it.... | \n", "1 | \n", "
997 | \n", "question real Anna Anderson Princess Anastasia... | \n", "1 | \n", "
998 | \n", "Michelle Pfeiffer stars mob widow seeks normal... | \n", "1 | \n", "
999 | \n", "film tells stories several couples coping Post... | \n", "1 | \n", "
1000 rows × 2 columns
\n", "LogisticRegression()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
LogisticRegression()