Skip to content

Commit

Permalink
Created using Colab
Browse files Browse the repository at this point in the history
  • Loading branch information
AISushilRaj committed Jan 14, 2025
1 parent 93437da commit a106c18
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions sushil_CrossGL_crosstl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -502,15 +502,15 @@
"base_uri": "https://localhost:8080/"
},
"id": "5qPghOugXjgD",
"outputId": "207d65fa-d539-400d-d4cb-ab147ce30604"
"outputId": "c6c9a039-82dc-4d8f-a2e6-be041c40022a"
},
"execution_count": 175,
"execution_count": 185,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Enter a value: The product is amazing and I absolutely love it! But the delivery service was horrible.\n"
"Enter a value: fuck you\n"
]
}
]
Expand Down Expand Up @@ -563,22 +563,20 @@
"base_uri": "https://localhost:8080/"
},
"id": "-ZYoduBFwLgm",
"outputId": "d33b8810-3dc3-4141-c3bb-373a79d7b96b"
"outputId": "464ca898-c085-4566-9193-ccd89d1fbeb2"
},
"execution_count": 176,
"execution_count": 186,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
"Bag of Words Representation:\n",
"[[1 1 1 1 1 1 1 1 1 1 1 2 1]]\n",
"Feature Names: ['absolutely' 'amazing' 'and' 'but' 'delivery' 'horrible' 'is' 'it' 'love'\n",
" 'product' 'service' 'the' 'was']\n",
"['absolutely' 'amazing' 'and' 'but' 'delivery' 'horrible' 'is' 'it' 'love'\n",
" 'product' 'service' 'the' 'was']\n",
"The word 'horrible' has a Negative sentiment.\n"
"[[1 1]]\n",
"Feature Names: ['fuck' 'you']\n",
"['fuck' 'you']\n",
"The word 'fuck' has a Negative sentiment.\n"
]
}
]
Expand Down Expand Up @@ -668,20 +666,16 @@
"base_uri": "https://localhost:8080/"
},
"id": "HvgdR0Hdc0Hu",
"outputId": "c30cd7f6-6a56-4c43-ef0a-11e8479ddd4f"
"outputId": "667ea4c2-d883-42c5-b500-efbd95c1e081"
},
"execution_count": 177,
"execution_count": 187,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Sentence: The product is amazing and I absolutely love it!\n",
"Sentiment Polarity: 0.6125\n",
"Sentiment Label: Positive\n",
"--------------------------------------------------\n",
"Sentence: But the delivery service was horrible.\n",
"Sentiment Polarity: -1.0\n",
"Sentence: fuck you\n",
"Sentiment Polarity: -0.4\n",
"Sentiment Label: Negative\n",
"Response: Sorry for the bad service. Our customer care will call you back. You can also contact us at +91-100-100.\n",
"--------------------------------------------------\n",
Expand Down Expand Up @@ -725,15 +719,15 @@
"height": 105
},
"id": "7ymByEsodqer",
"outputId": "0b5e35e2-f254-4a44-ba16-7f61421efa4a"
"outputId": "600d7f70-4f88-4c41-88b2-0c016edd5955"
},
"execution_count": 178,
"execution_count": 188,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"'The product is amazing and I absolutely love it! But the delivery service was horrible.'"
"'fuck you'"
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
Expand Down

0 comments on commit a106c18

Please sign in to comment.