{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import tensorflow as tf\n", "import numpy as np,sklearn,os,cv2,pandas\n", "import tensorflow_hub as hub\n", "import tensorflow_text as text\n", "from tensorflow.keras import Model,layers\n" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | Unnamed: 0 | \n", "Datetime | \n", "Tweet Id | \n", "Text | \n", "Username | \n", "sentiment | \n", "sentiment_score | \n", "emotion | \n", "emotion_score | \n", "
|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "0 | \n", "2022-09-30 23:29:15+00:00 | \n", "1575991191170342912 | \n", "@Logitech @apple @Google @Microsoft @Dell @Len... | \n", "ManjuSreedaran | \n", "neutral | \n", "0.853283 | \n", "anticipation | \n", "0.587121 | \n", "
| 1 | \n", "1 | \n", "2022-09-30 21:46:35+00:00 | \n", "1575965354425131008 | \n", "@MK_habit_addict @official_stier @MortalKombat... | \n", "MiKeMcDnet | \n", "neutral | \n", "0.519470 | \n", "joy | \n", "0.886913 | \n", "
| 2 | \n", "2 | \n", "2022-09-30 21:18:02+00:00 | \n", "1575958171423752203 | \n", "As @CRN celebrates its 40th anniversary, Bob F... | \n", "jfollett | \n", "positive | \n", "0.763791 | \n", "joy | \n", "0.960347 | \n", "
| 3 | \n", "3 | \n", "2022-09-30 20:05:24+00:00 | \n", "1575939891485032450 | \n", "@dell your customer service is horrible especi... | \n", "daveccarr | \n", "negative | \n", "0.954023 | \n", "anger | \n", "0.983203 | \n", "
| 4 | \n", "4 | \n", "2022-09-30 20:03:17+00:00 | \n", "1575939359160750080 | \n", "@zacokalo @Dell @DellCares @Dell give the man ... | \n", "heycamella | \n", "neutral | \n", "0.529170 | \n", "anger | \n", "0.776124 | \n", "