diff --git a/python/.ipynb_checkpoints/Journal Analysis-checkpoint.ipynb b/python/.ipynb_checkpoints/Journal Analysis-checkpoint.ipynb new file mode 100644 index 0000000..2488f5f --- /dev/null +++ b/python/.ipynb_checkpoints/Journal Analysis-checkpoint.ipynb @@ -0,0 +1,2039 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "j2QJaVa6Zavw", + "outputId": "c2a66834-4e10-474a-d788-e3b8ef4ea6da" + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Defaulting to user installation because normal site-packages is not writeable\n", + "Requirement already satisfied: transformers in /home/paul/.local/lib/python3.10/site-packages (4.26.1)\n", + "Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from transformers) (1.22.3)\n", + "Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in /home/paul/.local/lib/python3.10/site-packages (from transformers) (0.13.2)\n", + "Requirement already satisfied: huggingface-hub<1.0,>=0.11.0 in /home/paul/.local/lib/python3.10/site-packages (from transformers) (0.12.1)\n", + "Requirement already satisfied: pyyaml>=5.1 in /usr/lib/python3/dist-packages (from transformers) (5.4.1)\n", + "Requirement already satisfied: regex!=2019.12.17 in /usr/lib/python3/dist-packages (from transformers) (2021.11.10)\n", + "Requirement already satisfied: tqdm>=4.27 in /home/paul/.local/lib/python3.10/site-packages (from transformers) (4.65.0)\n", + "Requirement already satisfied: packaging>=20.0 in /home/paul/.local/lib/python3.10/site-packages (from transformers) (23.0)\n", + "Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from transformers) (2.25.1)\n", + "Requirement already satisfied: filelock in /home/paul/.local/lib/python3.10/site-packages (from transformers) (3.9.0)\n", + "Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/paul/.local/lib/python3.10/site-packages (from huggingface-hub<1.0,>=0.11.0->transformers) (4.5.0)\n", + "Defaulting to user installation because normal site-packages is not writeable\n", + "Requirement already satisfied: wordcloud in /home/paul/.local/lib/python3.10/site-packages (1.8.2.2)\n", + "Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages (from wordcloud) (3.5.1)\n", + "Requirement already satisfied: numpy>=1.6.1 in /usr/local/lib/python3.10/dist-packages (from wordcloud) (1.22.3)\n", + "Requirement already satisfied: pillow in /usr/lib/python3/dist-packages (from wordcloud) (9.0.1)\n" + ] + } + ], + "source": [ + "!pip install transformers\n", + "from transformers import pipeline\n", + "import pandas as pd\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "from matplotlib import pyplot as plt\n", + "from matplotlib.pyplot import figure\n", + "!pip install wordcloud\n", + "from wordcloud import WordCloud\n", + "import requests\n" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "id": "b7Kwu7XiuVk_" + }, + "outputs": [], + "source": [ + "data=[{\"title\": \"Jan 01 2023\",\n", + " \"body\": \"Happy New Year! It's hard to believe that it's already 2022. I woke up feeling a bit groggy from last night's festivities, but overall excited to start fresh in the new year. I spent most of the day lounging around, watching the Rose Parade and football games on TV. In the evening, I went out to dinner with some friends and we talked about our hopes and goals for the coming year. I'm looking forward to what this year has in store.\"},\n", + "{\n", + "\"title\": \"Jan 02 2023\",\n", + "\"body\": \"Today was a bit of a mixed bag. I started the day feeling energized and motivated to tackle some new projects, but as the day went on I became more and more anxious. I'm not exactly sure what triggered it, but I just couldn't shake the feeling of unease. I tried some relaxation techniques like deep breathing and meditation, but they didn't seem to help much. I'm hoping tomorrow will be better.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 03 2023\",\n", + "\"body\": \"Today was a great day! I woke up feeling refreshed and ready to take on the world. I tackled a bunch of tasks on my to-do list and even had time to catch up with a friend over lunch. In the evening, I went to a yoga class and left feeling rejuvenated. It's amazing how much of a difference a good day can make.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 04 2023\",\n", + "\"body\": \"Today was a sad day. I found out that a close family member passed away unexpectedly. I'm heartbroken and struggling to process the news. It's times like these that make me realize how important it is to cherish the people we love and hold them close.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 05 2023\",\n", + "\"body\": \"I'm still reeling from yesterday's news, but trying to stay positive. I spent some time today reflecting on the happy memories I have with my loved one and it brought me some comfort. It's hard to imagine life without them, but I know they'll always hold a special place in my heart.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 06 2023\",\n", + "\"body\": \"Today was a surprising day. I got a call from an old friend who I haven't spoken to in years. We caught up and it was like no time had passed at all. It's amazing how some connections can withstand the test of time. I'm grateful for the unexpected surprise.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 07 2023\",\n", + "\"body\": \"Today was a frustrating day. I had a disagreement with a coworker that left me feeling angry and upset. I tried to take some deep breaths and walk away from the situation, but I still feel unsettled. I'll have to find a way to address the issue tomorrow in a constructive way.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 08 2023\",\n", + "\"body\": \"Today was a lovely day. I went for a hike in the mountains with some friends and the views were breathtaking. It's moments like these that remind me of the beauty of nature and the importance of spending time outdoors. I feel rejuvenated and grateful for the experience.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 09 2023\",\n", + "\"body\": \"Today was a busy day. I had a lot of work to catch up on and it left me feeling a bit overwhelmed. I tried to prioritize my tasks and stay focused, but I still feel like I have a lot to do. I'm hoping to make some progress tomorrow and get back on track.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 10 2023\",\n", + "\"body\": \"Today was a surprising day. I found out that I won a small scholarship that I applied for a while back. I wasn't expecting to receive it, so it was a pleasant surprise. It's always nice to feel recognized for your hard work.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 11 2023\",\n", + "\"body\": \"Today was a nostalgic day. I stumbled upon some old photos of myself as a child and it brought back a flood of memories. It's interesting to see how much I've grown and changed over the years, but some things remain the same. Looking back on those moments made me feel grateful for the people and experiences that have shaped me into who I am today.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 12 2023\",\n", + "\"body\": \"Today was a fearful day. I received some unsettling news about a family member's health and it's left me feeling scared and worried. I'm hoping for the best, but it's hard not to let my mind wander to the worst case scenario. I'll be holding my loved ones a little closer tonight.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 13 2023\",\n", + "\"body\": \"Today was a happy day. I met up with some old friends for dinner and we had a great time catching up and reminiscing. It's amazing how even after years of not seeing each other, we can pick up right where we left off. I'm grateful for those friendships that stand the test of time.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 14 2023\",\n", + "\"body\": \"Today was a frustrating day. I've been working on a project for weeks now and it feels like no matter what I do, I can't seem to make any progress. It's discouraging and I'm starting to feel like giving up. I'll need to take a break and regroup before tackling it again tomorrow.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 15 2023\",\n", + "\"body\": \"Today was a surprising day. I received a package in the mail from a friend who lives across the country. It was completely unexpected and made me feel loved and appreciated. It's amazing how even small gestures can make a big impact.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 16 2023\",\n", + "\"body\": \"Today was a peaceful day. I spent the day doing some much-needed self-care activities like taking a bubble bath, reading a good book, and taking a nap. It's important to take time for ourselves and recharge.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 17 2023\",\n", + "\"body\": \"Today was a sad day. I received news that a friend's pet passed away. It's hard to see someone you care about go through loss and grief. I'll be reaching out to offer my support and condolences.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 18 2023\",\n", + "\"body\": \"Today was an angry day. I had a frustrating encounter with a rude stranger that left me feeling angry and defensive. It's frustrating when someone takes their bad mood out on you, but I'll try not to let it ruin my day.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 19 2023\",\n", + "\"body\": \"Today was a happy day. I took my dog to the park and it was so much fun watching him run and play with the other dogs. There's something so pure and joyful about watching animals have fun. It's a good reminder to find joy in the little things.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 20 2023\",\n", + "\"body\": \"Today was a hopeful day. I attended a peaceful protest for a cause that's important to me. It's empowering to see people come together for a common goal and to fight for what they believe in. I'm hopeful that change is possible.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 21 2023\",\n", + "\"body\": \"Today was a rollercoaster of emotions. I woke up feeling anxious about an upcoming job interview, but then received a call that my best friend is engaged! I'm so happy for her, but also feeling a bit sad that our dynamic will change once she gets married. Later in the day, I had the job interview and I think it went well, but now I'm just waiting to hear back. Overall, a mixed bag of emotions.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 22 2023\",\n", + "\"body\": \"Today was a lazy day. I slept in and then spent most of the day binge-watching my favorite show on Netflix. It felt nice to just relax and not have any responsibilities for a day. I did feel a bit guilty about not being productive, but sometimes you just need a break.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 23 2023\",\n", + "\"body\": \"I woke up feeling really motivated today. I started a new workout plan and went for a run in the park. It felt good to get my body moving and start the day off on the right foot. Later in the day, I met up with some friends for lunch and we had a great time catching up. Overall, a really positive day.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 24 2023\",\n", + "\"body\": \"Today was a bit of a struggle. I had a lot of work to do and felt really overwhelmed by it all. I tried to take breaks throughout the day to avoid burnout, but it was still a tough day. I'm hoping tomorrow will be better.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 25 2023\",\n", + "\"body\": \"Today was a total surprise. I received an email from a professor I haven't spoken to in years, offering me a research opportunity. I wasn't expecting it at all, but it felt like a sign that I'm on the right path. I'm excited to see where this opportunity takes me.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 26 2023\",\n", + "\"body\": \"I had a really meaningful conversation with a friend today. We talked about some deep topics and it felt good to connect on a deeper level. Sometimes it's easy to get caught up in surface-level conversations, so this was a refreshing change.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 27 2023\",\n", + "\"body\": \"Today was a sad day. I found out that a family member passed away unexpectedly. It's hard to process the news and I'm feeling a range of emotions. I'm trying to stay strong for my family, but it's tough.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 28 2023\",\n", + "\"body\": \"Today was a day of reflection. I spent some time thinking about my goals for the year and what I want to accomplish. I also took some time to remember my family member who passed away and honor their memory. It's important to take time to reflect and appreciate the people in our lives.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 29 2023\",\n", + "\"body\": \"Today was a frustrating day. I had plans to get some work done, but ended up dealing with a lot of unexpected roadblocks. It's frustrating when things don't go according to plan, but I'm trying to stay positive and remind myself that tomorrow is a new day.\"\n", + "},\n", + "\n", + "{\n", + "\"title\": \"Jan 30 2023\",\n", + "\"body\": \"Today was a really tough day. I found out that my best friend from college passed away unexpectedly. I'm in shock and devastated. We hadn't seen each other in a while but we talked on the phone regularly. I'm going to miss her so much. It's a reminder to hold our loved ones close and cherish every moment we have with them.\"\n", + "}]\n" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "id": "brFG8rLcxjuX" + }, + "outputs": [], + "source": [ + "date=[None]*30\n", + "entries=[None]*30\n", + "for i in range(len(data)):\n", + " date[i]=data[i][\"title\"]\n", + " entries[i]=data[i][\"body\"]" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": { + "id": "yK-nSPhDUXEG" + }, + "outputs": [], + "source": [ + "class Journals():\n", + "\n", + " def __init__(self,dates, entries):\n", + " data={\"dates\":dates,\"entries\":entries}\n", + " self.dates = dates\n", + " self.entries=entries\n", + "\n", + " \n", + " def daily_positive_negative_vals(self):\n", + " sentiment_pipeline = pipeline(\"sentiment-analysis\")\n", + " sentiment_score_arr = [None]*(len(self.entries))\n", + " for i in range(len(self.entries)):\n", + " if(sentiment_pipeline(str(self.entries[i]))[0][\"label\"] == 'POSITIVE'):\n", + " sentiment_score_arr[i] = sentiment_pipeline(\n", + " str(self.entries[i]))[0][\"score\"]\n", + " else:\n", + " sentiment_score_arr[i] = -1* \\\n", + " sentiment_pipeline(str(self.entries[i]))[0][\"score\"]\n", + " return sentiment_score_arr\n", + "\n", + " def daily_positive_negative_graph(self):\n", + " sentiment_pipeline = pipeline(\"sentiment-analysis\")\n", + " sentiment_score_arr = [None]*(len(self.entries))\n", + " for i in range(len(self.entries)):\n", + " if(sentiment_pipeline(str(self.entries[i]))[0][\"label\"] == 'POSITIVE'):\n", + " sentiment_score_arr[i] = sentiment_pipeline(str(self.entries[i]))[0][\"score\"]\n", + " else:\n", + " sentiment_score_arr[i] = -1*sentiment_pipeline(str(self.entries[i]))[0][\"score\"]\n", + " figure(figsize=(20, 9), dpi=80)\n", + " clrs = ['red' if (x < 0) else 'green' for x in sentiment_score_arr]\n", + " plt.bar(np.arange(1,31), sentiment_score_arr, color=clrs)\n", + " plt.xlabel(\"date\")\n", + " plt.ylabel(\"Amount of Negative of Positive Emotion\")\n", + " plt.title(\"Rate of Positive Emotion Everyday\")\n", + " plt.savefig('single_class.png')\n", + " def get_multiclass_graphs(self):\n", + " classifier = pipeline(\n", + " \"text-classification\", model='bhadresh-savani/distilbert-base-uncased-emotion', return_all_scores=True)\n", + " classifications = []\n", + " for i in range(len(self.entries)):\n", + " classifications.append(classifier(str(self.entries[i])))\n", + " classifications = [\n", + " item for sublist in classifications for item in sublist]\n", + " scores_seperate = []\n", + " for classification in classifications:\n", + " scores = []\n", + " for elem in classification:\n", + " scores.append(elem['score'])\n", + " scores_seperate.append(scores)\n", + " plt.rcParams[\"figure.figsize\"] = [7.50, 3.50]\n", + " plt.rcParams[\"figure.autolayout\"] = True\n", + " bars = []\n", + " labels = np.array(\n", + " [\"Sadness\", \"Joy\", \"Love\", \"Anger\", \"Fear\", \"Suprise\"])\n", + " colors = [\"darkviolet\", \"lime\", \"hotpink\", \"red\", \"black\", \"darkorange\"]\n", + " for i in range(0, len(scores_seperate)):\n", + " score_total = 0\n", + " for j in range(0, len(scores_seperate[i])):\n", + " plt.barh(i, scores_seperate[i][j], left=score_total,label=labels[j], color = colors[j])\n", + " plt.title(\"Probability Distribution of Various Emotions\")\n", + " score_total += scores_seperate[i][j]\n", + " plt.legend()\n", + " plt.savefig(str(i+1)+'.png')\n", + " plt.close()\n", + " def get_multiclass_scores(self):\n", + " classifier = pipeline(\n", + " \"text-classification\", model='bhadresh-savani/distilbert-base-uncased-emotion', return_all_scores=True)\n", + " classifications = []\n", + " for i in range(len(self.entries)):\n", + " classifications.append(classifier(str(self.entries[i])))\n", + " classifications = [\n", + " item for sublist in classifications for item in sublist]\n", + " scores_seperate = []\n", + " for classification in classifications:\n", + " scores = []\n", + " for elem in classification:\n", + " scores.append(elem['score'])\n", + " scores_seperate.append(scores)\n", + " scores_seperate=np.array(scores_seperate)*10\n", + " return np.round(scores_seperate)\n", + "\n", + " def create_wordCloud(self):\n", + " custom_stop_words = ['today', 'day', 'time', 'year']\n", + " wordcloud = WordCloud(background_color=\"white\", max_words=5000,\n", + " contour_width=3, contour_color='steelblue')\n", + " wordcloud.generate(str(self.entries))\n", + " return wordcloud.to_image().save(\"word_cloud.png\")\n", + " def create_summary(self):\n", + " \n", + " summarizer = pipeline(\"summarization\",model=\"facebook/bart-large-cnn\")\n", + " return (summarizer(str(self.entries[0:15]),min_length=5,max_length=100,do_sample=False))\n", + " \n", + "\n", + "\n", + "journal_array=Journals(date,entries)" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "id": "7iJ5f3nLeLvx" + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 721, + "referenced_widgets": [ + "45454a11474c4ecf9fda9924ed60d4b0", + "d519a9ac1df543d38baba345a4ffb81e", + "97f4bd3b460a48d7bf37058296c3324d", + "fdf08df58831490d988724acf886fbf7", + "2e2dec79934b499ab6bdc1611b655813", + "88882203db634dd09f686ef7d7b613b7", + "c2e011796c9546eb8ba871a369727ed5", + "51d8ccef884e4559bb79aae2a71a9989", + "8425193581504ceb88bfede5ca42ce4e", + "be31c010ba0144f1be05e0b5e3fc32f1", + "03f6c126c1dd4ca3995c4e92dc1f2a91", + "fb2c49f6c8af4b54a279044d9dc39a4c", + "d784af8697f44b349734a6884af8e325", + "b9a5ecb2c0dc4778973c086d8b709d77", + "2dfa7fad51264928bee19e6ae996f690", + "8b84a73e1065490fbdac127ec89c50c0", + "f73cc2fb77f74ec3bf2f39bcd2ad694e", + "7ca3c80dc3594c07bba327bdb445d306", + "6ddf614daa374ccb9dfc49e39bb1b79f", + "389fd4feb6364c73a2ce95be34bb3487", + "a1068d983a404553a303230ab0ecb1cf", + "762fdcb907094cc8ae99bf8e943a4727", + "dd6da3e68d5a4cff9f4e418f2090fd62", + "cd1280421f4e4a4f8411442ac3ba380e", + "bea103ab2c7649998bfda73dd6d0221c", + "5d883654172a4742aeaebd7b80592d3f", + "ddd456bab5d14e8b806b23447575aeca", + "10f2f7fde9ed41edbc6d4bdf5bcd8bb2", + "a9e67b0b0d2446dcbba17f8487104b8b", + "1f18cde672f74e628e1b937c032d9ae5", + "f26d432ef9394ca2bdd63d8087fd1b71", + "1383f5929bee44b7b66b54200a47af98", + "c60e36e429574160b271f4bb0dee23a5", + "7fbbb73ef7c04243a8ea1bbd01358895", + "b3a46fa781e8431d81820ee9540a3ff4", + "17c4ea70110d4c94a7eaa96e1f70b42e", + "898250f72f1e4e6d950db2b1df288cb0", + "d72eeb457ccf4e309d9e75b20cee4c9a", + "d26cc5046ecb4ff3b9c347344db8367a", + "d9492534807e433f9c87051c38924439", + "121c1b29edb34bef8e66a8d09a13ac23", + "065441a4fb5d42e9b8f44d7507f9d16b", + "bb066cd2e4324429a6b1df5c9768feab", + "cebecea831734f52b3d7429a643117f6" + ] + }, + "id": "iOG8oFiaew7J", + "outputId": "1f5b096f-44c3-4f3c-db0a-eeab020b47cd" + }, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "No model was supplied, defaulted to distilbert-base-uncased-finetuned-sst-2-english and revision af0f99b (https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english).\n", + "Using a pipeline without specifying a model name and revision in production is not recommended.\n" + ] + }, + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "45454a11474c4ecf9fda9924ed60d4b0", + "version_major": 2, + "version_minor": 0 + }, + "text/plain": [ + "Downloading (…)lve/main/config.json: 0%| | 0.00/629 [00:00" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "journal_array.daily_positive_negative_graph()" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "KLmNzXzAexD0", + "outputId": "1dcb86c1-3697-428f-9a12-bc636ecc21f1" + }, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/usr/local/lib/python3.8/dist-packages/transformers/pipelines/text_classification.py:104: UserWarning: `return_all_scores` is now deprecated, if want a similar funcionality use `top_k=None` instead of `return_all_scores=True` or `top_k=1` instead of `return_all_scores=False`.\n", + " warnings.warn(\n" + ] + }, + { + "data": { + "text/plain": [ + "array([[10., 0., 0., 0., 0., 0.],\n", + " [ 0., 7., 0., 0., 3., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [10., 0., 0., 0., 0., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 0., 9., 0., 0., 0., 1.],\n", + " [ 0., 0., 0., 10., 0., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 0., 0., 0., 0., 3., 7.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 0., 3., 7., 0., 0., 0.],\n", + " [ 0., 0., 0., 0., 10., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 8., 2., 0., 0., 0., 0.],\n", + " [ 0., 0., 10., 0., 0., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 8., 1., 1., 0., 0., 0.],\n", + " [ 0., 0., 0., 10., 0., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 0., 0., 0., 0., 10., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 0., 0., 0., 0., 3., 7.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [ 8., 2., 0., 0., 0., 0.],\n", + " [ 0., 10., 0., 0., 0., 0.],\n", + " [10., 0., 0., 0., 0., 0.]])" + ] + }, + "execution_count": 39, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "journal_array.get_multiclass_scores()" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 287 + }, + "id": "rUuIEmEKexGL", + "outputId": "0b2845a4-73d9-464b-e42e-d2a8871cd9a4" + }, + "outputs": [ + { + "ename": "IndexError", + "evalue": "ignored", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mIndexError\u001b[0m Traceback (most recent call last)", + "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mjournal_array\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget_multiclass_graphs\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", + "\u001b[0;32m\u001b[0m in \u001b[0;36mget_multiclass_graphs\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 56\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m30\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m31\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 57\u001b[0m \u001b[0mscore_total\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 58\u001b[0;31m \u001b[0;32mfor\u001b[0m \u001b[0mj\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mscores_seperate\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 59\u001b[0m \u001b[0mplt\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbarh\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mscores_seperate\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mj\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mleft\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mscore_total\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mlabel\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mlabels\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mj\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcolor\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcolors\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mj\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 60\u001b[0m \u001b[0mplt\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtitle\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Probability Distribution of Various Emotions\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;31mIndexError\u001b[0m: list index out of range" + ] + } + ], + "source": [ + "journal_array.get_multiclass_graphs()" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "id": "fE9kH9fnexHl" + }, + "outputs": [], + "source": [ + "journal_array.create_wordCloud()" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "MPpf6_Q_ec3q", + "outputId": "82cba40c-dd3c-4720-9cc2-cd9c6855b4f7" + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[{'summary_text': '\"Today was a bit of a mixed bag. I started the day feeling energized and motivated to tackle some new projects, but as the day went on I became more and more anxious. I\\'m hoping tomorrow will be better.\" \"I found out that I won a small scholarship that I applied for a while back. It\\'s always nice to feel recognized for your hard work\"'}]" + ] + }, + "execution_count": 35, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "journal_array.create_summary()" + ] + } + ], + "metadata": { + "colab": { + "provenance": [], + "toc_visible": true + }, + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.6" + }, + "widgets": { + "application/vnd.jupyter.widget-state+json": { + "03f6c126c1dd4ca3995c4e92dc1f2a91": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "065441a4fb5d42e9b8f44d7507f9d16b": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "ProgressStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "ProgressStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "bar_color": null, + "description_width": "" + } + }, + "10f2f7fde9ed41edbc6d4bdf5bcd8bb2": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "121c1b29edb34bef8e66a8d09a13ac23": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "1383f5929bee44b7b66b54200a47af98": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "17c4ea70110d4c94a7eaa96e1f70b42e": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "FloatProgressModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "FloatProgressModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "ProgressView", + "bar_style": "success", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_121c1b29edb34bef8e66a8d09a13ac23", + "max": 231508, + "min": 0, + "orientation": "horizontal", + "style": "IPY_MODEL_065441a4fb5d42e9b8f44d7507f9d16b", + "value": 231508 + } + }, + "1f18cde672f74e628e1b937c032d9ae5": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "2dfa7fad51264928bee19e6ae996f690": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_a1068d983a404553a303230ab0ecb1cf", + "placeholder": "​", + "style": "IPY_MODEL_762fdcb907094cc8ae99bf8e943a4727", + "value": " 268M/268M [00:03<00:00, 79.5MB/s]" + } + }, + "2e2dec79934b499ab6bdc1611b655813": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "389fd4feb6364c73a2ce95be34bb3487": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "ProgressStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "ProgressStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "bar_color": null, + "description_width": "" + } + }, + "45454a11474c4ecf9fda9924ed60d4b0": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HBoxModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HBoxModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HBoxView", + "box_style": "", + "children": [ + "IPY_MODEL_d519a9ac1df543d38baba345a4ffb81e", + "IPY_MODEL_97f4bd3b460a48d7bf37058296c3324d", + "IPY_MODEL_fdf08df58831490d988724acf886fbf7" + ], + "layout": "IPY_MODEL_2e2dec79934b499ab6bdc1611b655813" + } + }, + "51d8ccef884e4559bb79aae2a71a9989": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "5d883654172a4742aeaebd7b80592d3f": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_1383f5929bee44b7b66b54200a47af98", + "placeholder": "​", + "style": "IPY_MODEL_c60e36e429574160b271f4bb0dee23a5", + "value": " 48.0/48.0 [00:00<00:00, 1.03kB/s]" + } + }, + "6ddf614daa374ccb9dfc49e39bb1b79f": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "762fdcb907094cc8ae99bf8e943a4727": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "7ca3c80dc3594c07bba327bdb445d306": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "7fbbb73ef7c04243a8ea1bbd01358895": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HBoxModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HBoxModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HBoxView", + "box_style": "", + "children": [ + "IPY_MODEL_b3a46fa781e8431d81820ee9540a3ff4", + "IPY_MODEL_17c4ea70110d4c94a7eaa96e1f70b42e", + "IPY_MODEL_898250f72f1e4e6d950db2b1df288cb0" + ], + "layout": "IPY_MODEL_d72eeb457ccf4e309d9e75b20cee4c9a" + } + }, + "8425193581504ceb88bfede5ca42ce4e": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "ProgressStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "ProgressStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "bar_color": null, + "description_width": "" + } + }, + "88882203db634dd09f686ef7d7b613b7": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "898250f72f1e4e6d950db2b1df288cb0": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_bb066cd2e4324429a6b1df5c9768feab", + "placeholder": "​", + "style": "IPY_MODEL_cebecea831734f52b3d7429a643117f6", + "value": " 232k/232k [00:00<00:00, 388kB/s]" + } + }, + "8b84a73e1065490fbdac127ec89c50c0": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "97f4bd3b460a48d7bf37058296c3324d": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "FloatProgressModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "FloatProgressModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "ProgressView", + "bar_style": "success", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_51d8ccef884e4559bb79aae2a71a9989", + "max": 629, + "min": 0, + "orientation": "horizontal", + "style": "IPY_MODEL_8425193581504ceb88bfede5ca42ce4e", + "value": 629 + } + }, + "a1068d983a404553a303230ab0ecb1cf": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "a9e67b0b0d2446dcbba17f8487104b8b": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "b3a46fa781e8431d81820ee9540a3ff4": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_d26cc5046ecb4ff3b9c347344db8367a", + "placeholder": "​", + "style": "IPY_MODEL_d9492534807e433f9c87051c38924439", + "value": "Downloading (…)solve/main/vocab.txt: 100%" + } + }, + "b9a5ecb2c0dc4778973c086d8b709d77": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "FloatProgressModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "FloatProgressModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "ProgressView", + "bar_style": "success", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_6ddf614daa374ccb9dfc49e39bb1b79f", + "max": 267844284, + "min": 0, + "orientation": "horizontal", + "style": "IPY_MODEL_389fd4feb6364c73a2ce95be34bb3487", + "value": 267844284 + } + }, + "bb066cd2e4324429a6b1df5c9768feab": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "be31c010ba0144f1be05e0b5e3fc32f1": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "bea103ab2c7649998bfda73dd6d0221c": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "FloatProgressModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "FloatProgressModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "ProgressView", + "bar_style": "success", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_1f18cde672f74e628e1b937c032d9ae5", + "max": 48, + "min": 0, + "orientation": "horizontal", + "style": "IPY_MODEL_f26d432ef9394ca2bdd63d8087fd1b71", + "value": 48 + } + }, + "c2e011796c9546eb8ba871a369727ed5": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "c60e36e429574160b271f4bb0dee23a5": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "cd1280421f4e4a4f8411442ac3ba380e": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_10f2f7fde9ed41edbc6d4bdf5bcd8bb2", + "placeholder": "​", + "style": "IPY_MODEL_a9e67b0b0d2446dcbba17f8487104b8b", + "value": "Downloading (…)okenizer_config.json: 100%" + } + }, + "cebecea831734f52b3d7429a643117f6": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "d26cc5046ecb4ff3b9c347344db8367a": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "d519a9ac1df543d38baba345a4ffb81e": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_88882203db634dd09f686ef7d7b613b7", + "placeholder": "​", + "style": "IPY_MODEL_c2e011796c9546eb8ba871a369727ed5", + "value": "Downloading (…)lve/main/config.json: 100%" + } + }, + "d72eeb457ccf4e309d9e75b20cee4c9a": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "d784af8697f44b349734a6884af8e325": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_f73cc2fb77f74ec3bf2f39bcd2ad694e", + "placeholder": "​", + "style": "IPY_MODEL_7ca3c80dc3594c07bba327bdb445d306", + "value": "Downloading (…)"pytorch_model.bin";: 100%" + } + }, + "d9492534807e433f9c87051c38924439": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "dd6da3e68d5a4cff9f4e418f2090fd62": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HBoxModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HBoxModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HBoxView", + "box_style": "", + "children": [ + "IPY_MODEL_cd1280421f4e4a4f8411442ac3ba380e", + "IPY_MODEL_bea103ab2c7649998bfda73dd6d0221c", + "IPY_MODEL_5d883654172a4742aeaebd7b80592d3f" + ], + "layout": "IPY_MODEL_ddd456bab5d14e8b806b23447575aeca" + } + }, + "ddd456bab5d14e8b806b23447575aeca": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "f26d432ef9394ca2bdd63d8087fd1b71": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "ProgressStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "ProgressStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "bar_color": null, + "description_width": "" + } + }, + "f73cc2fb77f74ec3bf2f39bcd2ad694e": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "fb2c49f6c8af4b54a279044d9dc39a4c": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HBoxModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HBoxModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HBoxView", + "box_style": "", + "children": [ + "IPY_MODEL_d784af8697f44b349734a6884af8e325", + "IPY_MODEL_b9a5ecb2c0dc4778973c086d8b709d77", + "IPY_MODEL_2dfa7fad51264928bee19e6ae996f690" + ], + "layout": "IPY_MODEL_8b84a73e1065490fbdac127ec89c50c0" + } + }, + "fdf08df58831490d988724acf886fbf7": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_be31c010ba0144f1be05e0b5e3fc32f1", + "placeholder": "​", + "style": "IPY_MODEL_03f6c126c1dd4ca3995c4e92dc1f2a91", + "value": " 629/629 [00:00<00:00, 15.8kB/s]" + } + } + } + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/python/Journal Analysis.ipynb b/python/Journal Analysis.ipynb new file mode 100644 index 0000000..6ae7150 --- /dev/null +++ b/python/Journal Analysis.ipynb @@ -0,0 +1,1889 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "j2QJaVa6Zavw", + "outputId": "c2a66834-4e10-474a-d788-e3b8ef4ea6da" + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Defaulting to user installation because normal site-packages is not writeable\n", + "Requirement already satisfied: transformers in /home/paul/.local/lib/python3.10/site-packages (4.26.1)\n", + "Requirement already satisfied: pyyaml>=5.1 in /usr/lib/python3/dist-packages (from transformers) (5.4.1)\n", + "Requirement already satisfied: regex!=2019.12.17 in /usr/lib/python3/dist-packages (from transformers) (2021.11.10)\n", + "Requirement already satisfied: filelock in /home/paul/.local/lib/python3.10/site-packages (from transformers) (3.9.0)\n", + "Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from transformers) (2.25.1)\n", + "Requirement already satisfied: huggingface-hub<1.0,>=0.11.0 in /home/paul/.local/lib/python3.10/site-packages (from transformers) (0.12.1)\n", + "Requirement already satisfied: packaging>=20.0 in /home/paul/.local/lib/python3.10/site-packages (from transformers) (23.0)\n", + "Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in /home/paul/.local/lib/python3.10/site-packages (from transformers) (0.13.2)\n", + "Requirement already satisfied: tqdm>=4.27 in /home/paul/.local/lib/python3.10/site-packages (from transformers) (4.65.0)\n", + "Requirement already satisfied: numpy>=1.17 in /usr/local/lib/python3.10/dist-packages (from transformers) (1.22.3)\n", + "Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/paul/.local/lib/python3.10/site-packages (from huggingface-hub<1.0,>=0.11.0->transformers) (4.5.0)\n", + "Defaulting to user installation because normal site-packages is not writeable\n", + "Requirement already satisfied: wordcloud in /home/paul/.local/lib/python3.10/site-packages (1.8.2.2)\n", + "Requirement already satisfied: pillow in /usr/lib/python3/dist-packages (from wordcloud) (9.0.1)\n", + "Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages (from wordcloud) (3.5.1)\n", + "Requirement already satisfied: numpy>=1.6.1 in /usr/local/lib/python3.10/dist-packages (from wordcloud) (1.22.3)\n" + ] + } + ], + "source": [ + "!pip install transformers\n", + "from transformers import pipeline\n", + "import pandas as pd\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "from matplotlib import pyplot as plt\n", + "from matplotlib.pyplot import figure\n", + "!pip install wordcloud\n", + "from wordcloud import WordCloud\n", + "import requests\n" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "id": "b7Kwu7XiuVk_" + }, + "outputs": [], + "source": [ + "data=[{\"title\": \"Jan 01 2023\",\n", + " \"body\": \"Happy New Year! It's hard to believe that it's already 2022. I woke up feeling a bit groggy from last night's festivities, but overall excited to start fresh in the new year. I spent most of the day lounging around, watching the Rose Parade and football games on TV. In the evening, I went out to dinner with some friends and we talked about our hopes and goals for the coming year. I'm looking forward to what this year has in store.\"},\n", + "{\n", + "\"title\": \"Jan 02 2023\",\n", + "\"body\": \"Today was a bit of a mixed bag. I started the day feeling energized and motivated to tackle some new projects, but as the day went on I became more and more anxious. I'm not exactly sure what triggered it, but I just couldn't shake the feeling of unease. I tried some relaxation techniques like deep breathing and meditation, but they didn't seem to help much. I'm hoping tomorrow will be better.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 03 2023\",\n", + "\"body\": \"Today was a great day! I woke up feeling refreshed and ready to take on the world. I tackled a bunch of tasks on my to-do list and even had time to catch up with a friend over lunch. In the evening, I went to a yoga class and left feeling rejuvenated. It's amazing how much of a difference a good day can make.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 04 2023\",\n", + "\"body\": \"Today was a sad day. I found out that a close family member passed away unexpectedly. I'm heartbroken and struggling to process the news. It's times like these that make me realize how important it is to cherish the people we love and hold them close.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 05 2023\",\n", + "\"body\": \"I'm still reeling from yesterday's news, but trying to stay positive. I spent some time today reflecting on the happy memories I have with my loved one and it brought me some comfort. It's hard to imagine life without them, but I know they'll always hold a special place in my heart.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 06 2023\",\n", + "\"body\": \"Today was a surprising day. I got a call from an old friend who I haven't spoken to in years. We caught up and it was like no time had passed at all. It's amazing how some connections can withstand the test of time. I'm grateful for the unexpected surprise.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 07 2023\",\n", + "\"body\": \"Today was a frustrating day. I had a disagreement with a coworker that left me feeling angry and upset. I tried to take some deep breaths and walk away from the situation, but I still feel unsettled. I'll have to find a way to address the issue tomorrow in a constructive way.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 08 2023\",\n", + "\"body\": \"Today was a lovely day. I went for a hike in the mountains with some friends and the views were breathtaking. It's moments like these that remind me of the beauty of nature and the importance of spending time outdoors. I feel rejuvenated and grateful for the experience.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 09 2023\",\n", + "\"body\": \"Today was a busy day. I had a lot of work to catch up on and it left me feeling a bit overwhelmed. I tried to prioritize my tasks and stay focused, but I still feel like I have a lot to do. I'm hoping to make some progress tomorrow and get back on track.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 10 2023\",\n", + "\"body\": \"Today was a surprising day. I found out that I won a small scholarship that I applied for a while back. I wasn't expecting to receive it, so it was a pleasant surprise. It's always nice to feel recognized for your hard work.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 11 2023\",\n", + "\"body\": \"Today was a nostalgic day. I stumbled upon some old photos of myself as a child and it brought back a flood of memories. It's interesting to see how much I've grown and changed over the years, but some things remain the same. Looking back on those moments made me feel grateful for the people and experiences that have shaped me into who I am today.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 12 2023\",\n", + "\"body\": \"Today was a fearful day. I received some unsettling news about a family member's health and it's left me feeling scared and worried. I'm hoping for the best, but it's hard not to let my mind wander to the worst case scenario. I'll be holding my loved ones a little closer tonight.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 13 2023\",\n", + "\"body\": \"Today was a happy day. I met up with some old friends for dinner and we had a great time catching up and reminiscing. It's amazing how even after years of not seeing each other, we can pick up right where we left off. I'm grateful for those friendships that stand the test of time.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 14 2023\",\n", + "\"body\": \"Today was a frustrating day. I've been working on a project for weeks now and it feels like no matter what I do, I can't seem to make any progress. It's discouraging and I'm starting to feel like giving up. I'll need to take a break and regroup before tackling it again tomorrow.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 15 2023\",\n", + "\"body\": \"Today was a surprising day. I received a package in the mail from a friend who lives across the country. It was completely unexpected and made me feel loved and appreciated. It's amazing how even small gestures can make a big impact.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 16 2023\",\n", + "\"body\": \"Today was a peaceful day. I spent the day doing some much-needed self-care activities like taking a bubble bath, reading a good book, and taking a nap. It's important to take time for ourselves and recharge.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 17 2023\",\n", + "\"body\": \"Today was a sad day. I received news that a friend's pet passed away. It's hard to see someone you care about go through loss and grief. I'll be reaching out to offer my support and condolences.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 18 2023\",\n", + "\"body\": \"Today was an angry day. I had a frustrating encounter with a rude stranger that left me feeling angry and defensive. It's frustrating when someone takes their bad mood out on you, but I'll try not to let it ruin my day.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 19 2023\",\n", + "\"body\": \"Today was a happy day. I took my dog to the park and it was so much fun watching him run and play with the other dogs. There's something so pure and joyful about watching animals have fun. It's a good reminder to find joy in the little things.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 20 2023\",\n", + "\"body\": \"Today was a hopeful day. I attended a peaceful protest for a cause that's important to me. It's empowering to see people come together for a common goal and to fight for what they believe in. I'm hopeful that change is possible.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 21 2023\",\n", + "\"body\": \"Today was a rollercoaster of emotions. I woke up feeling anxious about an upcoming job interview, but then received a call that my best friend is engaged! I'm so happy for her, but also feeling a bit sad that our dynamic will change once she gets married. Later in the day, I had the job interview and I think it went well, but now I'm just waiting to hear back. Overall, a mixed bag of emotions.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 22 2023\",\n", + "\"body\": \"Today was a lazy day. I slept in and then spent most of the day binge-watching my favorite show on Netflix. It felt nice to just relax and not have any responsibilities for a day. I did feel a bit guilty about not being productive, but sometimes you just need a break.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 23 2023\",\n", + "\"body\": \"I woke up feeling really motivated today. I started a new workout plan and went for a run in the park. It felt good to get my body moving and start the day off on the right foot. Later in the day, I met up with some friends for lunch and we had a great time catching up. Overall, a really positive day.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 24 2023\",\n", + "\"body\": \"Today was a bit of a struggle. I had a lot of work to do and felt really overwhelmed by it all. I tried to take breaks throughout the day to avoid burnout, but it was still a tough day. I'm hoping tomorrow will be better.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 25 2023\",\n", + "\"body\": \"Today was a total surprise. I received an email from a professor I haven't spoken to in years, offering me a research opportunity. I wasn't expecting it at all, but it felt like a sign that I'm on the right path. I'm excited to see where this opportunity takes me.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 26 2023\",\n", + "\"body\": \"I had a really meaningful conversation with a friend today. We talked about some deep topics and it felt good to connect on a deeper level. Sometimes it's easy to get caught up in surface-level conversations, so this was a refreshing change.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 27 2023\",\n", + "\"body\": \"Today was a sad day. I found out that a family member passed away unexpectedly. It's hard to process the news and I'm feeling a range of emotions. I'm trying to stay strong for my family, but it's tough.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 28 2023\",\n", + "\"body\": \"Today was a day of reflection. I spent some time thinking about my goals for the year and what I want to accomplish. I also took some time to remember my family member who passed away and honor their memory. It's important to take time to reflect and appreciate the people in our lives.\"\n", + "},\n", + "{\n", + "\"title\": \"Jan 29 2023\",\n", + "\"body\": \"Today was a frustrating day. I had plans to get some work done, but ended up dealing with a lot of unexpected roadblocks. It's frustrating when things don't go according to plan, but I'm trying to stay positive and remind myself that tomorrow is a new day.\"\n", + "},\n", + "\n", + "{\n", + "\"title\": \"Jan 30 2023\",\n", + "\"body\": \"Today was a really tough day. I found out that my best friend from college passed away unexpectedly. I'm in shock and devastated. We hadn't seen each other in a while but we talked on the phone regularly. I'm going to miss her so much. It's a reminder to hold our loved ones close and cherish every moment we have with them.\"\n", + "}]\n" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "id": "brFG8rLcxjuX" + }, + "outputs": [], + "source": [ + "date=[None]*30\n", + "entries=[None]*30\n", + "for i in range(len(data)):\n", + " date[i]=data[i][\"title\"]\n", + " entries[i]=data[i][\"body\"]" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "7iJ5f3nLeLvx" + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "id": "yK-nSPhDUXEG" + }, + "outputs": [], + "source": [ + "class Journals():\n", + "\n", + " def __init__(self,dates, entries):\n", + " data={\"dates\":dates,\"entries\":entries}\n", + " self.dates = dates\n", + " self.entries=entries\n", + "\n", + " \n", + " def daily_positive_negative_vals(self):\n", + " sentiment_pipeline = pipeline(\"sentiment-analysis\")\n", + " sentiment_score_arr = [None]*(len(self.entries))\n", + " for i in range(len(self.entries)):\n", + " if(sentiment_pipeline(str(self.entries[i]))[0][\"label\"] == 'POSITIVE'):\n", + " sentiment_score_arr[i] = sentiment_pipeline(\n", + " str(self.entries[i]))[0][\"score\"]\n", + " else:\n", + " sentiment_score_arr[i] = -1* \\\n", + " sentiment_pipeline(str(self.entries[i]))[0][\"score\"]\n", + " return sentiment_score_arr\n", + "\n", + " def daily_positive_negative_graph(self):\n", + " sentiment_pipeline = pipeline(\"sentiment-analysis\")\n", + " sentiment_score_arr = [None]*(len(self.entries))\n", + " for i in range(len(self.entries)):\n", + " if(sentiment_pipeline(str(self.entries[i]))[0][\"label\"] == 'POSITIVE'):\n", + " sentiment_score_arr[i] = sentiment_pipeline(str(self.entries[i]))[0][\"score\"]\n", + " else:\n", + " sentiment_score_arr[i] = -1*sentiment_pipeline(str(self.entries[i]))[0][\"score\"]\n", + " figure(figsize=(20, 9), dpi=80)\n", + " clrs = ['red' if (x < 0) else 'green' for x in sentiment_score_arr]\n", + " plt.bar(np.arange(1,31), sentiment_score_arr, color=clrs)\n", + " plt.xlabel(\"date\")\n", + " plt.ylabel(\"Amount of Negative of Positive Emotion\")\n", + " plt.title(\"Rate of Positive Emotion Everyday\")\n", + " plt.savefig('single_class.png')\n", + " def get_multiclass_graphs(self):\n", + " classifier = pipeline(\n", + " \"text-classification\", model='bhadresh-savani/distilbert-base-uncased-emotion', return_all_scores=True)\n", + " classifications = []\n", + " for i in range(len(self.entries)):\n", + " classifications.append(classifier(str(self.entries[i])))\n", + " classifications = [\n", + " item for sublist in classifications for item in sublist]\n", + " scores_seperate = []\n", + " for classification in classifications:\n", + " scores = []\n", + " for elem in classification:\n", + " scores.append(elem['score'])\n", + " scores_seperate.append(scores)\n", + " plt.rcParams[\"figure.figsize\"] = [7.50, 3.50]\n", + " plt.rcParams[\"figure.autolayout\"] = True\n", + " bars = []\n", + " labels = np.array(\n", + " [\"Sadness\", \"Joy\", \"Love\", \"Anger\", \"Fear\", \"Suprise\"])\n", + " colors = [\"darkviolet\", \"lime\", \"hotpink\", \"red\", \"black\", \"darkorange\"]\n", + " for i in range(0, len(scores_seperate)):\n", + " score_total = 0\n", + " for j in range(0, len(scores_seperate[i])):\n", + " plt.barh(i, scores_seperate[i][j], left=score_total,label=labels[j], color = colors[j])\n", + " plt.title(\"Probability Distribution of Various Emotions\")\n", + " score_total += scores_seperate[i][j]\n", + " plt.legend()\n", + " plt.savefig(str(i+1)+'.png')\n", + " plt.close()\n", + " def get_multiclass_scores(self):\n", + " classifier = pipeline(\n", + " \"text-classification\", model='bhadresh-savani/distilbert-base-uncased-emotion', return_all_scores=True)\n", + " classifications = []\n", + " for i in range(len(self.entries)):\n", + " classifications.append(classifier(str(self.entries[i])))\n", + " classifications = [\n", + " item for sublist in classifications for item in sublist]\n", + " scores_seperate = []\n", + " for classification in classifications:\n", + " scores = []\n", + " for elem in classification:\n", + " scores.append(elem['score'])\n", + " scores_seperate.append(scores)\n", + " scores_seperate=np.array(scores_seperate)*10\n", + " return np.round(scores_seperate)\n", + "\n", + " def create_wordCloud(self):\n", + " custom_stop_words = ['today', 'day', 'time', 'year']\n", + " stop_words = set(custom_stop_words)\n", + " wordcloud = WordCloud(background_color=\"white\", max_words=5000,\n", + " contour_width=3, contour_color='steelblue', stopwords=stop_words)\n", + " wordcloud.generate(str(self.entries))\n", + " return wordcloud.to_image().save(\"word_cloud.png\")\n", + " def create_summary(self):\n", + " \n", + " summarizer = pipeline(\"summarization\",model=\"facebook/bart-large-cnn\")\n", + " return (summarizer(str(self.entries[0:15]),min_length=5,max_length=100,do_sample=False))\n", + " \n", + "\n", + "\n", + "journal_array=Journals(date,entries)" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 721, + "referenced_widgets": [ + "45454a11474c4ecf9fda9924ed60d4b0", + "d519a9ac1df543d38baba345a4ffb81e", + "97f4bd3b460a48d7bf37058296c3324d", + "fdf08df58831490d988724acf886fbf7", + "2e2dec79934b499ab6bdc1611b655813", + "88882203db634dd09f686ef7d7b613b7", + "c2e011796c9546eb8ba871a369727ed5", + "51d8ccef884e4559bb79aae2a71a9989", + "8425193581504ceb88bfede5ca42ce4e", + "be31c010ba0144f1be05e0b5e3fc32f1", + "03f6c126c1dd4ca3995c4e92dc1f2a91", + "fb2c49f6c8af4b54a279044d9dc39a4c", + "d784af8697f44b349734a6884af8e325", + "b9a5ecb2c0dc4778973c086d8b709d77", + "2dfa7fad51264928bee19e6ae996f690", + "8b84a73e1065490fbdac127ec89c50c0", + "f73cc2fb77f74ec3bf2f39bcd2ad694e", + "7ca3c80dc3594c07bba327bdb445d306", + "6ddf614daa374ccb9dfc49e39bb1b79f", + "389fd4feb6364c73a2ce95be34bb3487", + "a1068d983a404553a303230ab0ecb1cf", + "762fdcb907094cc8ae99bf8e943a4727", + "dd6da3e68d5a4cff9f4e418f2090fd62", + "cd1280421f4e4a4f8411442ac3ba380e", + "bea103ab2c7649998bfda73dd6d0221c", + "5d883654172a4742aeaebd7b80592d3f", + "ddd456bab5d14e8b806b23447575aeca", + "10f2f7fde9ed41edbc6d4bdf5bcd8bb2", + "a9e67b0b0d2446dcbba17f8487104b8b", + "1f18cde672f74e628e1b937c032d9ae5", + "f26d432ef9394ca2bdd63d8087fd1b71", + "1383f5929bee44b7b66b54200a47af98", + "c60e36e429574160b271f4bb0dee23a5", + "7fbbb73ef7c04243a8ea1bbd01358895", + "b3a46fa781e8431d81820ee9540a3ff4", + "17c4ea70110d4c94a7eaa96e1f70b42e", + "898250f72f1e4e6d950db2b1df288cb0", + "d72eeb457ccf4e309d9e75b20cee4c9a", + "d26cc5046ecb4ff3b9c347344db8367a", + "d9492534807e433f9c87051c38924439", + "121c1b29edb34bef8e66a8d09a13ac23", + "065441a4fb5d42e9b8f44d7507f9d16b", + "bb066cd2e4324429a6b1df5c9768feab", + "cebecea831734f52b3d7429a643117f6" + ] + }, + "id": "iOG8oFiaew7J", + "outputId": "1f5b096f-44c3-4f3c-db0a-eeab020b47cd" + }, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "No model was supplied, defaulted to distilbert-base-uncased-finetuned-sst-2-english and revision af0f99b (https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english).\n", + "Using a pipeline without specifying a model name and revision in production is not recommended.\n", + "Widget Javascript not detected. It may not be installed or enabled properly. Reconnecting the current kernel may help.\n" + ] + }, + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "e7a9bdc064c64f12a9d3031351133b92" + } + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "ename": "OSError", + "evalue": "Can't load the configuration of 'distilbert-base-uncased-finetuned-sst-2-english'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'distilbert-base-uncased-finetuned-sst-2-english' is the correct path to a directory containing a config.json file", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/transformers/configuration_utils.py\u001b[0m in \u001b[0;36m_get_config_dict\u001b[0;34m(cls, pretrained_model_name_or_path, **kwargs)\u001b[0m\n\u001b[1;32m 619\u001b[0m \u001b[0;31m# Load from local folder or from cache or download from model Hub and cache\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 620\u001b[0;31m resolved_config_file = cached_file(\n\u001b[0m\u001b[1;32m 621\u001b[0m \u001b[0mpretrained_model_name_or_path\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/transformers/utils/hub.py\u001b[0m in \u001b[0;36mcached_file\u001b[0;34m(path_or_repo_id, filename, cache_dir, force_download, resume_download, proxies, use_auth_token, revision, local_files_only, subfolder, user_agent, _raise_exceptions_for_missing_entries, _raise_exceptions_for_connection_errors, _commit_hash)\u001b[0m\n\u001b[1;32m 408\u001b[0m \u001b[0;31m# Load from URL or cache if already cached\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 409\u001b[0;31m resolved_file = hf_hub_download(\n\u001b[0m\u001b[1;32m 410\u001b[0m \u001b[0mpath_or_repo_id\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py\u001b[0m in \u001b[0;36m_inner_fn\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 123\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 124\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mfn\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 125\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/huggingface_hub/file_download.py\u001b[0m in \u001b[0;36mhf_hub_download\u001b[0;34m(repo_id, filename, subfolder, repo_type, revision, library_name, library_version, cache_dir, user_agent, force_download, force_filename, proxies, etag_timeout, resume_download, token, local_files_only, legacy_cache_layout)\u001b[0m\n\u001b[1;32m 1282\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1283\u001b[0;31m http_get(\n\u001b[0m\u001b[1;32m 1284\u001b[0m \u001b[0murl_to_download\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/huggingface_hub/file_download.py\u001b[0m in \u001b[0;36mhttp_get\u001b[0;34m(url, temp_file, proxies, resume_size, headers, timeout, max_retries)\u001b[0m\n\u001b[1;32m 521\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 522\u001b[0;31m progress = tqdm(\n\u001b[0m\u001b[1;32m 523\u001b[0m \u001b[0munit\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"B\"\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/huggingface_hub/utils/tqdm.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 123\u001b[0m \u001b[0mkwargs\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"disable\"\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 124\u001b[0;31m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__init__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 125\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/tqdm/notebook.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 244\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdisp\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdisplay\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 245\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcolour\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcolour\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 246\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/tqdm/notebook.py\u001b[0m in \u001b[0;36mcolour\u001b[0;34m(self, bar_color)\u001b[0m\n\u001b[1;32m 203\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mhasattr\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'container'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 204\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcontainer\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mchildren\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstyle\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbar_color\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mbar_color\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 205\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;31mAttributeError\u001b[0m: 'FloatProgress' object has no attribute 'style'", + "\nDuring handling of the above exception, another exception occurred:\n", + "\u001b[0;31mOSError\u001b[0m Traceback (most recent call last)", + "\u001b[0;32m/tmp/ipykernel_119455/2162644960.py\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mjournal_array\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdaily_positive_negative_vals\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", + "\u001b[0;32m/tmp/ipykernel_119455/1376297399.py\u001b[0m in \u001b[0;36mdaily_positive_negative_vals\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 8\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mdaily_positive_negative_vals\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 10\u001b[0;31m \u001b[0msentiment_pipeline\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mpipeline\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"sentiment-analysis\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 11\u001b[0m \u001b[0msentiment_score_arr\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mentries\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mentries\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/transformers/pipelines/__init__.py\u001b[0m in \u001b[0;36mpipeline\u001b[0;34m(task, model, config, tokenizer, feature_extractor, framework, revision, use_fast, use_auth_token, device, device_map, torch_dtype, trust_remote_code, model_kwargs, pipeline_class, **kwargs)\u001b[0m\n\u001b[1;32m 728\u001b[0m )\n\u001b[1;32m 729\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mconfig\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmodel\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 730\u001b[0;31m \u001b[0mconfig\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mAutoConfig\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfrom_pretrained\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmodel\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0m_from_pipeline\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mtask\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mhub_kwargs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mmodel_kwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 731\u001b[0m \u001b[0mhub_kwargs\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"_commit_hash\"\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mconfig\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_commit_hash\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 732\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py\u001b[0m in \u001b[0;36mfrom_pretrained\u001b[0;34m(cls, pretrained_model_name_or_path, **kwargs)\u001b[0m\n\u001b[1;32m 850\u001b[0m \u001b[0mkwargs\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"name_or_path\"\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mpretrained_model_name_or_path\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 851\u001b[0m \u001b[0mtrust_remote_code\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mkwargs\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpop\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"trust_remote_code\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 852\u001b[0;31m \u001b[0mconfig_dict\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0munused_kwargs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mPretrainedConfig\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget_config_dict\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpretrained_model_name_or_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 853\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;34m\"auto_map\"\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mconfig_dict\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0;34m\"AutoConfig\"\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mconfig_dict\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"auto_map\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 854\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mtrust_remote_code\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/transformers/configuration_utils.py\u001b[0m in \u001b[0;36mget_config_dict\u001b[0;34m(cls, pretrained_model_name_or_path, **kwargs)\u001b[0m\n\u001b[1;32m 563\u001b[0m \u001b[0moriginal_kwargs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcopy\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdeepcopy\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 564\u001b[0m \u001b[0;31m# Get config dict associated with the base config file\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 565\u001b[0;31m \u001b[0mconfig_dict\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mkwargs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcls\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_config_dict\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mpretrained_model_name_or_path\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 566\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;34m\"_commit_hash\"\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mconfig_dict\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 567\u001b[0m \u001b[0moriginal_kwargs\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"_commit_hash\"\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mconfig_dict\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"_commit_hash\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/.local/lib/python3.10/site-packages/transformers/configuration_utils.py\u001b[0m in \u001b[0;36m_get_config_dict\u001b[0;34m(cls, pretrained_model_name_or_path, **kwargs)\u001b[0m\n\u001b[1;32m 639\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mException\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 640\u001b[0m \u001b[0;31m# For any other exception, we throw a generic error.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 641\u001b[0;31m raise EnvironmentError(\n\u001b[0m\u001b[1;32m 642\u001b[0m \u001b[0;34mf\"Can't load the configuration of '{pretrained_model_name_or_path}'. If you were trying to load it\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 643\u001b[0m \u001b[0;34m\" from 'https://huggingface.co/models', make sure you don't have a local directory with the same\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;31mOSError\u001b[0m: Can't load the configuration of 'distilbert-base-uncased-finetuned-sst-2-english'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'distilbert-base-uncased-finetuned-sst-2-english' is the correct path to a directory containing a config.json file" + ] + } + ], + "source": [ + "journal_array.daily_positive_negative_vals()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 479 + }, + "id": "IamjbTDcexCC", + "outputId": "dcb56db4-b1ab-46ce-a693-369bb123b527" + }, + "outputs": [], + "source": [ + "journal_array.daily_positive_negative_graph()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "KLmNzXzAexD0", + "outputId": "1dcb86c1-3697-428f-9a12-bc636ecc21f1" + }, + "outputs": [], + "source": [ + "journal_array.get_multiclass_scores()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 287 + }, + "id": "rUuIEmEKexGL", + "outputId": "0b2845a4-73d9-464b-e42e-d2a8871cd9a4" + }, + "outputs": [], + "source": [ + "journal_array.get_multiclass_graphs()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "fE9kH9fnexHl" + }, + "outputs": [], + "source": [ + "journal_array.create_wordCloud()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "MPpf6_Q_ec3q", + "outputId": "82cba40c-dd3c-4720-9cc2-cd9c6855b4f7" + }, + "outputs": [], + "source": [ + "journal_array.create_summary()" + ] + } + ], + "metadata": { + "colab": { + "provenance": [], + "toc_visible": true + }, + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.6" + }, + "widgets": { + "application/vnd.jupyter.widget-state+json": { + "03f6c126c1dd4ca3995c4e92dc1f2a91": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "065441a4fb5d42e9b8f44d7507f9d16b": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "ProgressStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "ProgressStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "bar_color": null, + "description_width": "" + } + }, + "10f2f7fde9ed41edbc6d4bdf5bcd8bb2": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "121c1b29edb34bef8e66a8d09a13ac23": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "1383f5929bee44b7b66b54200a47af98": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "17c4ea70110d4c94a7eaa96e1f70b42e": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "FloatProgressModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "FloatProgressModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "ProgressView", + "bar_style": "success", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_121c1b29edb34bef8e66a8d09a13ac23", + "max": 231508, + "min": 0, + "orientation": "horizontal", + "style": "IPY_MODEL_065441a4fb5d42e9b8f44d7507f9d16b", + "value": 231508 + } + }, + "1f18cde672f74e628e1b937c032d9ae5": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "2dfa7fad51264928bee19e6ae996f690": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_a1068d983a404553a303230ab0ecb1cf", + "placeholder": "​", + "style": "IPY_MODEL_762fdcb907094cc8ae99bf8e943a4727", + "value": " 268M/268M [00:03<00:00, 79.5MB/s]" + } + }, + "2e2dec79934b499ab6bdc1611b655813": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "389fd4feb6364c73a2ce95be34bb3487": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "ProgressStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "ProgressStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "bar_color": null, + "description_width": "" + } + }, + "45454a11474c4ecf9fda9924ed60d4b0": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HBoxModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HBoxModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HBoxView", + "box_style": "", + "children": [ + "IPY_MODEL_d519a9ac1df543d38baba345a4ffb81e", + "IPY_MODEL_97f4bd3b460a48d7bf37058296c3324d", + "IPY_MODEL_fdf08df58831490d988724acf886fbf7" + ], + "layout": "IPY_MODEL_2e2dec79934b499ab6bdc1611b655813" + } + }, + "51d8ccef884e4559bb79aae2a71a9989": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "5d883654172a4742aeaebd7b80592d3f": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_1383f5929bee44b7b66b54200a47af98", + "placeholder": "​", + "style": "IPY_MODEL_c60e36e429574160b271f4bb0dee23a5", + "value": " 48.0/48.0 [00:00<00:00, 1.03kB/s]" + } + }, + "6ddf614daa374ccb9dfc49e39bb1b79f": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "762fdcb907094cc8ae99bf8e943a4727": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "7ca3c80dc3594c07bba327bdb445d306": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "7fbbb73ef7c04243a8ea1bbd01358895": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HBoxModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HBoxModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HBoxView", + "box_style": "", + "children": [ + "IPY_MODEL_b3a46fa781e8431d81820ee9540a3ff4", + "IPY_MODEL_17c4ea70110d4c94a7eaa96e1f70b42e", + "IPY_MODEL_898250f72f1e4e6d950db2b1df288cb0" + ], + "layout": "IPY_MODEL_d72eeb457ccf4e309d9e75b20cee4c9a" + } + }, + "8425193581504ceb88bfede5ca42ce4e": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "ProgressStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "ProgressStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "bar_color": null, + "description_width": "" + } + }, + "88882203db634dd09f686ef7d7b613b7": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "898250f72f1e4e6d950db2b1df288cb0": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_bb066cd2e4324429a6b1df5c9768feab", + "placeholder": "​", + "style": "IPY_MODEL_cebecea831734f52b3d7429a643117f6", + "value": " 232k/232k [00:00<00:00, 388kB/s]" + } + }, + "8b84a73e1065490fbdac127ec89c50c0": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "97f4bd3b460a48d7bf37058296c3324d": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "FloatProgressModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "FloatProgressModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "ProgressView", + "bar_style": "success", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_51d8ccef884e4559bb79aae2a71a9989", + "max": 629, + "min": 0, + "orientation": "horizontal", + "style": "IPY_MODEL_8425193581504ceb88bfede5ca42ce4e", + "value": 629 + } + }, + "a1068d983a404553a303230ab0ecb1cf": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "a9e67b0b0d2446dcbba17f8487104b8b": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "b3a46fa781e8431d81820ee9540a3ff4": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_d26cc5046ecb4ff3b9c347344db8367a", + "placeholder": "​", + "style": "IPY_MODEL_d9492534807e433f9c87051c38924439", + "value": "Downloading (…)solve/main/vocab.txt: 100%" + } + }, + "b9a5ecb2c0dc4778973c086d8b709d77": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "FloatProgressModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "FloatProgressModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "ProgressView", + "bar_style": "success", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_6ddf614daa374ccb9dfc49e39bb1b79f", + "max": 267844284, + "min": 0, + "orientation": "horizontal", + "style": "IPY_MODEL_389fd4feb6364c73a2ce95be34bb3487", + "value": 267844284 + } + }, + "bb066cd2e4324429a6b1df5c9768feab": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "be31c010ba0144f1be05e0b5e3fc32f1": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "bea103ab2c7649998bfda73dd6d0221c": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "FloatProgressModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "FloatProgressModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "ProgressView", + "bar_style": "success", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_1f18cde672f74e628e1b937c032d9ae5", + "max": 48, + "min": 0, + "orientation": "horizontal", + "style": "IPY_MODEL_f26d432ef9394ca2bdd63d8087fd1b71", + "value": 48 + } + }, + "c2e011796c9546eb8ba871a369727ed5": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "c60e36e429574160b271f4bb0dee23a5": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "cd1280421f4e4a4f8411442ac3ba380e": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_10f2f7fde9ed41edbc6d4bdf5bcd8bb2", + "placeholder": "​", + "style": "IPY_MODEL_a9e67b0b0d2446dcbba17f8487104b8b", + "value": "Downloading (…)okenizer_config.json: 100%" + } + }, + "cebecea831734f52b3d7429a643117f6": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "d26cc5046ecb4ff3b9c347344db8367a": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "d519a9ac1df543d38baba345a4ffb81e": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_88882203db634dd09f686ef7d7b613b7", + "placeholder": "​", + "style": "IPY_MODEL_c2e011796c9546eb8ba871a369727ed5", + "value": "Downloading (…)lve/main/config.json: 100%" + } + }, + "d72eeb457ccf4e309d9e75b20cee4c9a": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "d784af8697f44b349734a6884af8e325": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_f73cc2fb77f74ec3bf2f39bcd2ad694e", + "placeholder": "​", + "style": "IPY_MODEL_7ca3c80dc3594c07bba327bdb445d306", + "value": "Downloading (…)"pytorch_model.bin";: 100%" + } + }, + "d9492534807e433f9c87051c38924439": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "DescriptionStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "DescriptionStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "description_width": "" + } + }, + "dd6da3e68d5a4cff9f4e418f2090fd62": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HBoxModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HBoxModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HBoxView", + "box_style": "", + "children": [ + "IPY_MODEL_cd1280421f4e4a4f8411442ac3ba380e", + "IPY_MODEL_bea103ab2c7649998bfda73dd6d0221c", + "IPY_MODEL_5d883654172a4742aeaebd7b80592d3f" + ], + "layout": "IPY_MODEL_ddd456bab5d14e8b806b23447575aeca" + } + }, + "ddd456bab5d14e8b806b23447575aeca": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "f26d432ef9394ca2bdd63d8087fd1b71": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "ProgressStyleModel", + "state": { + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "ProgressStyleModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "StyleView", + "bar_color": null, + "description_width": "" + } + }, + "f73cc2fb77f74ec3bf2f39bcd2ad694e": { + "model_module": "@jupyter-widgets/base", + "model_module_version": "1.2.0", + "model_name": "LayoutModel", + "state": { + "_model_module": "@jupyter-widgets/base", + "_model_module_version": "1.2.0", + "_model_name": "LayoutModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/base", + "_view_module_version": "1.2.0", + "_view_name": "LayoutView", + "align_content": null, + "align_items": null, + "align_self": null, + "border": null, + "bottom": null, + "display": null, + "flex": null, + "flex_flow": null, + "grid_area": null, + "grid_auto_columns": null, + "grid_auto_flow": null, + "grid_auto_rows": null, + "grid_column": null, + "grid_gap": null, + "grid_row": null, + "grid_template_areas": null, + "grid_template_columns": null, + "grid_template_rows": null, + "height": null, + "justify_content": null, + "justify_items": null, + "left": null, + "margin": null, + "max_height": null, + "max_width": null, + "min_height": null, + "min_width": null, + "object_fit": null, + "object_position": null, + "order": null, + "overflow": null, + "overflow_x": null, + "overflow_y": null, + "padding": null, + "right": null, + "top": null, + "visibility": null, + "width": null + } + }, + "fb2c49f6c8af4b54a279044d9dc39a4c": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HBoxModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HBoxModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HBoxView", + "box_style": "", + "children": [ + "IPY_MODEL_d784af8697f44b349734a6884af8e325", + "IPY_MODEL_b9a5ecb2c0dc4778973c086d8b709d77", + "IPY_MODEL_2dfa7fad51264928bee19e6ae996f690" + ], + "layout": "IPY_MODEL_8b84a73e1065490fbdac127ec89c50c0" + } + }, + "fdf08df58831490d988724acf886fbf7": { + "model_module": "@jupyter-widgets/controls", + "model_module_version": "1.5.0", + "model_name": "HTMLModel", + "state": { + "_dom_classes": [], + "_model_module": "@jupyter-widgets/controls", + "_model_module_version": "1.5.0", + "_model_name": "HTMLModel", + "_view_count": null, + "_view_module": "@jupyter-widgets/controls", + "_view_module_version": "1.5.0", + "_view_name": "HTMLView", + "description": "", + "description_tooltip": null, + "layout": "IPY_MODEL_be31c010ba0144f1be05e0b5e3fc32f1", + "placeholder": "​", + "style": "IPY_MODEL_03f6c126c1dd4ca3995c4e92dc1f2a91", + "value": " 629/629 [00:00<00:00, 15.8kB/s]" + } + } + } + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} diff --git a/static/images/graphs/1.png b/static/images/graphs/1.png new file mode 100644 index 0000000..9b2149b Binary files /dev/null and b/static/images/graphs/1.png differ diff --git a/static/images/graphs/10.png b/static/images/graphs/10.png new file mode 100644 index 0000000..6f45090 Binary files /dev/null and b/static/images/graphs/10.png differ diff --git a/static/images/graphs/11.png b/static/images/graphs/11.png new file mode 100644 index 0000000..6dab8e4 Binary files /dev/null and b/static/images/graphs/11.png differ diff --git a/static/images/graphs/12.png b/static/images/graphs/12.png new file mode 100644 index 0000000..d9baf1a Binary files /dev/null and b/static/images/graphs/12.png differ diff --git a/static/images/graphs/13.png b/static/images/graphs/13.png new file mode 100644 index 0000000..0bbcec0 Binary files /dev/null and b/static/images/graphs/13.png differ diff --git a/static/images/graphs/14.png b/static/images/graphs/14.png new file mode 100644 index 0000000..b0afa42 Binary files /dev/null and b/static/images/graphs/14.png differ diff --git a/static/images/graphs/15.png b/static/images/graphs/15.png new file mode 100644 index 0000000..d6f1f8f Binary files /dev/null and b/static/images/graphs/15.png differ diff --git a/static/images/graphs/16.png b/static/images/graphs/16.png new file mode 100644 index 0000000..42718b6 Binary files /dev/null and b/static/images/graphs/16.png differ diff --git a/static/images/graphs/17.png b/static/images/graphs/17.png new file mode 100644 index 0000000..4d5b2a9 Binary files /dev/null and b/static/images/graphs/17.png differ diff --git a/static/images/graphs/18.png b/static/images/graphs/18.png new file mode 100644 index 0000000..323f97b Binary files /dev/null and b/static/images/graphs/18.png differ diff --git a/static/images/graphs/19.png b/static/images/graphs/19.png new file mode 100644 index 0000000..16ebd49 Binary files /dev/null and b/static/images/graphs/19.png differ diff --git a/static/images/graphs/2.png b/static/images/graphs/2.png new file mode 100644 index 0000000..214e1c8 Binary files /dev/null and b/static/images/graphs/2.png differ diff --git a/static/images/graphs/20.png b/static/images/graphs/20.png new file mode 100644 index 0000000..cb3983d Binary files /dev/null and b/static/images/graphs/20.png differ diff --git a/static/images/graphs/21.png b/static/images/graphs/21.png new file mode 100644 index 0000000..f2aba68 Binary files /dev/null and b/static/images/graphs/21.png differ diff --git a/static/images/graphs/22.png b/static/images/graphs/22.png new file mode 100644 index 0000000..8a6e8ad Binary files /dev/null and b/static/images/graphs/22.png differ diff --git a/static/images/graphs/23.png b/static/images/graphs/23.png new file mode 100644 index 0000000..d8a2bd6 Binary files /dev/null and b/static/images/graphs/23.png differ diff --git a/static/images/graphs/24.png b/static/images/graphs/24.png new file mode 100644 index 0000000..30de8b8 Binary files /dev/null and b/static/images/graphs/24.png differ diff --git a/static/images/graphs/25.png b/static/images/graphs/25.png new file mode 100644 index 0000000..26dec15 Binary files /dev/null and b/static/images/graphs/25.png differ diff --git a/static/images/graphs/26.png b/static/images/graphs/26.png new file mode 100644 index 0000000..38f8421 Binary files /dev/null and b/static/images/graphs/26.png differ diff --git a/static/images/graphs/27.png b/static/images/graphs/27.png new file mode 100644 index 0000000..d838cb7 Binary files /dev/null and b/static/images/graphs/27.png differ diff --git a/static/images/graphs/28.png b/static/images/graphs/28.png new file mode 100644 index 0000000..08229df Binary files /dev/null and b/static/images/graphs/28.png differ diff --git a/static/images/graphs/29.png b/static/images/graphs/29.png new file mode 100644 index 0000000..b6ab307 Binary files /dev/null and b/static/images/graphs/29.png differ diff --git a/static/images/graphs/3.png b/static/images/graphs/3.png new file mode 100644 index 0000000..c28cc77 Binary files /dev/null and b/static/images/graphs/3.png differ diff --git a/static/images/graphs/30.png b/static/images/graphs/30.png new file mode 100644 index 0000000..af25361 Binary files /dev/null and b/static/images/graphs/30.png differ diff --git a/static/images/graphs/4.png b/static/images/graphs/4.png new file mode 100644 index 0000000..f109c5d Binary files /dev/null and b/static/images/graphs/4.png differ diff --git a/static/images/graphs/5.png b/static/images/graphs/5.png new file mode 100644 index 0000000..ed8a282 Binary files /dev/null and b/static/images/graphs/5.png differ diff --git a/static/images/graphs/6.png b/static/images/graphs/6.png new file mode 100644 index 0000000..faf805b Binary files /dev/null and b/static/images/graphs/6.png differ diff --git a/static/images/graphs/7.png b/static/images/graphs/7.png new file mode 100644 index 0000000..4ad6322 Binary files /dev/null and b/static/images/graphs/7.png differ diff --git a/static/images/graphs/8.png b/static/images/graphs/8.png new file mode 100644 index 0000000..0473430 Binary files /dev/null and b/static/images/graphs/8.png differ diff --git a/static/images/graphs/9.png b/static/images/graphs/9.png new file mode 100644 index 0000000..d00d229 Binary files /dev/null and b/static/images/graphs/9.png differ