{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "72bfa4f0-5c58-4b50-8bf5-bc05902aa527", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[nltk_data] Downloading package stopwords to\n", "[nltk_data] C:\\Users\\MY\\AppData\\Roaming\\nltk_data...\n", "[nltk_data] Package stopwords is already up-to-date!\n" ] } ], "source": [ " import pandas as pd\n", " import matplotlib.pyplot as plt\n", "\n", " import nltk\n", " nltk.download('stopwords')\n", " from nltk.corpus import stopwords" ] }, { "cell_type": "code", "execution_count": 27, "id": "39a23503-8904-4786-96dd-c36b47f42944", "metadata": {}, "outputs": [], "source": [ "data = pd.read_csv('learner_feedback.csv')" ] }, { "cell_type": "code", "execution_count": 3, "id": "05c406ca", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | text | \n", "sentiment | \n", "
---|---|---|
0 | \n", "My daughter liked it but I was aghast, that a ... | \n", "neg | \n", "
1 | \n", "I... No words. No words can describe this. I w... | \n", "neg | \n", "
2 | \n", "this film is basically a poor take on the old ... | \n", "neg | \n", "
3 | \n", "This is a terrible movie, and I'm not even sur... | \n", "neg | \n", "
4 | \n", "First of all this movie is a piece of reality ... | \n", "pos | \n", "
LogisticRegression()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
LogisticRegression()