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 a106c18 commit f4a159e
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 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": "c6c9a039-82dc-4d8f-a2e6-be041c40022a"
"outputId": "73717fac-cf0b-4cc9-d115-392ef13ca996"
},
"execution_count": 185,
"execution_count": 189,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Enter a value: fuck you\n"
"Enter a value: The product is amazing and I absolutely love it! But the delivery service was horrible.\n"
]
}
]
Expand Down Expand Up @@ -563,20 +563,22 @@
"base_uri": "https://localhost:8080/"
},
"id": "-ZYoduBFwLgm",
"outputId": "464ca898-c085-4566-9193-ccd89d1fbeb2"
"outputId": "287c3c8d-a32d-44a8-c284-2cb1d4bc64f4"
},
"execution_count": 186,
"execution_count": 190,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"\n",
"Bag of Words Representation:\n",
"[[1 1]]\n",
"Feature Names: ['fuck' 'you']\n",
"['fuck' 'you']\n",
"The word 'fuck' has a Negative sentiment.\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"
]
}
]
Expand Down Expand Up @@ -666,16 +668,20 @@
"base_uri": "https://localhost:8080/"
},
"id": "HvgdR0Hdc0Hu",
"outputId": "667ea4c2-d883-42c5-b500-efbd95c1e081"
"outputId": "2910903b-1622-4d1c-dca1-c62deebd8daa"
},
"execution_count": 187,
"execution_count": 191,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Sentence: fuck you\n",
"Sentiment Polarity: -0.4\n",
"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",
"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 @@ -719,15 +725,15 @@
"height": 105
},
"id": "7ymByEsodqer",
"outputId": "600d7f70-4f88-4c41-88b2-0c016edd5955"
"outputId": "706e82b5-94f0-4c23-c2a6-f49774da011c"
},
"execution_count": 188,
"execution_count": 192,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"'fuck you'"
"'The product is amazing and I absolutely love it! But the delivery service was horrible.'"
],
"application/vnd.google.colaboratory.intrinsic+json": {
"type": "string"
Expand Down

0 comments on commit f4a159e

Please sign in to comment.