{ "cells": [ { "cell_type": "code", "execution_count": 91, "id": "89885771", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "from matplotlib import pyplot\n", "import matplotlib.colors as mcolors" ] }, { "cell_type": "code", "execution_count": 2, "id": "8a9a471b", "metadata": {}, "outputs": [], "source": [ "# reading the database\n", "data = pd.read_csv(\"Cleaned_text_overview-of-recordings.csv\")" ] }, { "cell_type": "code", "execution_count": 5, "id": "12903441", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | phrase | \n", "prompt | \n", "phrase_length | \n", "phrase_num_words | \n", "mean_word_len | \n", "phrase_non_stopwords | \n", "new_text | \n", "
---|---|---|---|---|---|---|---|
0 | \n", "When I remember her I feel down | \n", "Emotional pain | \n", "31 | \n", "7 | \n", "3.571429 | \n", "5 | \n", "remember feel | \n", "
1 | \n", "When I carry heavy things I feel like breaking... | \n", "Hair falling out | \n", "54 | \n", "11 | \n", "4.000000 | \n", "9 | \n", "carry heavy things feel like breaking back | \n", "
2 | \n", "there is too much pain when i move my arm | \n", "Heart hurts | \n", "41 | \n", "10 | \n", "3.200000 | \n", "2 | \n", "much pain move arm | \n", "
3 | \n", "My son had his lip pierced and it is swollen a... | \n", "Infected wound | \n", "103 | \n", "22 | \n", "3.727273 | \n", "11 | \n", "son lip pierced swollen skin inside lip grey l... | \n", "
4 | \n", "My muscles in my lower back are aching | \n", "Infected wound | \n", "38 | \n", "8 | \n", "3.875000 | \n", "4 | \n", "muscles lower back aching | \n", "