nlp-lab/Project/Tools/emoji_plotting.ipynb

192 lines
1.2 MiB
Plaintext
Raw Normal View History

2018-07-16 11:54:56 +02:00
{
"cells": [
{
"cell_type": "code",
2018-07-24 11:04:25 +02:00
"execution_count": 1,
2018-07-16 11:54:56 +02:00
"metadata": {},
"outputs": [],
"source": [
2018-07-20 13:46:12 +02:00
"%matplotlib inline\n",
"#widget"
2018-07-16 11:54:56 +02:00
]
},
{
"cell_type": "code",
2018-07-24 11:04:25 +02:00
"execution_count": 2,
2018-07-20 13:46:12 +02:00
"metadata": {
"collapsed": true
},
2018-07-16 11:54:56 +02:00
"outputs": [],
"source": [
"def sentiment_score(s):\n",
" #(pos, neg, neu)^T\n",
" return s[0] - s[1]"
]
},
{
"cell_type": "code",
2018-07-24 11:04:25 +02:00
"execution_count": 3,
2018-07-20 13:46:12 +02:00
"metadata": {
"collapsed": true
},
2018-07-16 11:54:56 +02:00
"outputs": [],
"source": [
"import Emoji_Distance as edist\n",
2018-07-16 12:10:35 +02:00
"import numpy as np\n",
"from __future__ import unicode_literals\n",
"\n",
2018-07-20 11:54:14 +02:00
"import matplotlib.pyplot as plt\n",
"import matplotlib\n"
2018-07-16 11:54:56 +02:00
]
},
{
"cell_type": "code",
2018-07-24 11:04:25 +02:00
"execution_count": 4,
2018-07-20 13:46:12 +02:00
"metadata": {
"collapsed": true
},
2018-07-16 11:54:56 +02:00
"outputs": [],
"source": [
"list_emoticon_scores = np.array([sentiment_score(x) for x in edist.list_sentiment_emoticon_vectors])"
]
},
{
"cell_type": "code",
2018-07-24 11:04:25 +02:00
"execution_count": 5,
2018-07-20 13:46:12 +02:00
"metadata": {
"collapsed": true
},
2018-07-20 11:54:14 +02:00
"outputs": [],
"source": [
2018-07-24 11:04:25 +02:00
"matplotlib.rc('font', family='symbola', size=32)"
2018-07-20 11:54:14 +02:00
]
},
{
"cell_type": "code",
2018-07-24 11:04:25 +02:00
"execution_count": 6,
2018-07-20 13:46:12 +02:00
"metadata": {
"collapsed": true
},
2018-07-16 11:54:56 +02:00
"outputs": [],
"source": [
"def plot_emoji_list(sentiment_vectors, unicode_repr, title=\"Emoji Space\"):\n",
" \n",
" # sentiment score axis\n",
" X = np.array([sentiment_score(x) for x in sentiment_vectors])\n",
" \n",
" # neutral axis:\n",
" Y = np.array([x[2] for x in sentiment_vectors])\n",
" \n",
2018-07-20 11:54:14 +02:00
" fig_1, ax_1 = plt.subplots(figsize=(15,10))\n",
" plt.title(title + \" -- sentiment-plot\")\n",
2018-07-16 11:54:56 +02:00
" plt.xlabel(\"sentiment score\")\n",
" plt.ylabel(\"neutrality\")\n",
2018-07-20 13:46:12 +02:00
" plt.xlim([-0.4,0.9])\n",
" plt.ylim([0.07,0.6])\n",
2018-07-16 11:54:56 +02:00
" for i in range(len(X)):\n",
" plt.text(X[i], Y[i], unicode_repr[i])\n",
2018-07-20 11:54:14 +02:00
" plt.savefig(title + \" -- sentiment-plot.png\", bbox_inches='tight')\n",
" \n",
" # sentiment score axis\n",
" X = np.array([x[0] for x in sentiment_vectors])\n",
" \n",
" # neutral axis:\n",
" Y = np.array([x[1] for x in sentiment_vectors])\n",
" \n",
" fig_2, ax_2 = plt.subplots(figsize=(15,10))\n",
" plt.title(title + \" -- positive-negative-plot\")\n",
2018-07-20 13:46:12 +02:00
" plt.xlim([0.15,0.85])\n",
" plt.ylim([0.0,0.7])\n",
2018-07-20 11:54:14 +02:00
" plt.xlabel(\"positive\")\n",
" plt.ylabel(\"negative\")\n",
" for i in range(len(X)):\n",
" plt.text(X[i], Y[i], unicode_repr[i])\n",
" plt.savefig(title + \" -- positive-negative-plot.png\", bbox_inches='tight')\n",
2018-07-16 12:11:39 +02:00
" #plt.show()\n",
2018-07-20 11:54:14 +02:00
" "
2018-07-16 11:54:56 +02:00
]
},
{
"cell_type": "code",
2018-07-24 11:04:25 +02:00
"execution_count": 7,
2018-07-16 11:54:56 +02:00
"metadata": {},
"outputs": [
{
"data": {
2018-07-24 11:04:25 +02:00
"image/png": "iVBORw0KGgoAA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hAbfVUJ/1yJdyvg2cAESZmA+RjybPArZvobxNSsbpylZM6w+V9Fd1WpLP0M0tYs8CujfrHuSdkIXAdRXKWIP86JUEfBfoUSZmx2IZWAB8uEz39Yt6H0veaWiq/97AgcDkMvOnP/l5pAm4qoOX12+X1OHxKnE7FTGb1FBm72JZOwy4p6T8M8hJ+N+Bsc366Qb8voj7F8uOit9DPrPTfBgXFrGv11inbxXxt5DPGpabL3cVMd+sUs5a5KTrhZLxqjh88kGGVi/bZcoZQD6b+Wdg4woxhxf/yQR8sOT3dcnrikPJZ0Wb6nM8eWdvmzJlbUZ+9nIqlsl1Kwxza+DfRezOZbpvRT57sQT4Wo3j2hO4qhj2DOADZWJGF/+fBcCoMt0D+GFRxh+Bjcp0b1omZjb/zzX6i5zAv07ege9bpnsv8o5907LQu8J/4tFi3n0F6Nms+2By0p/IB9mipFtbtlkbFctSAk6vcTxrWv8362fbkv/JM2W6Dyz+40eSE9SmYXySvH5/DBjZrJ/ewJQi7rFiGd6kmD4trev6t1DfVXI+tGGZ7ldM0zHF9Gga5qnkJO8/abYvQt5m/7aIm0PL+yJXNpVbQ306ZJtSEj+x1mH7WvmvulfAl6/2vKiSnJJ3iIaS7894uy0rcvIOflP5hwD3U2bHooht2oF/p9ggPwy8u0LsV0rKXWFnsCRubfJOcgKOb6Guuxbj+Xq1jQJtTE6Lfl9uaaNIPuL9RrWNLbBNSR0SsEOz7r2KaZ2AH7RQp+Hky63eAT5aJe6TJcP7L/LR+Erz53NF3BJg8w5cXr9dUocVklNyYvw
2018-07-16 11:54:56 +02:00
"text/plain": [
2018-07-24 11:04:25 +02:00
"<Figure size 1080x720 with 1 Axes>"
2018-07-16 11:54:56 +02:00
]
},
"metadata": {},
"output_type": "display_data"
2018-07-16 12:11:39 +02:00
},
{
"data": {
2018-07-24 11:04:25 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA6cAAAKVCAYAAAAz2Z1iAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALE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n7fRmLLeAGmA38Lo9NJfnnroOcZBqrjTPWEvQ1bv/DPU00CXGcPBUua+W95wLlB3olA8i8FuZe/uWd3EPteDndpPtNdYzaQWop5b3gQ/TpiGwrexnbejHfp/gKwGVtuTQFSIrhGui/eCHWKuv5QkrwQ6y3mCuhWSgkZuXE6gciN0xOwrWi3Yj++vvhPdB+xz/1fRhdmp5Ob5I51cy/QiX6yNbGVFQE+iUCfOtihnPuBW7Ctbf4yPbAGcibQOkx8TTz3lF6MZ93DEy7ks3Qflmwn+wR+BijW6HwLa1y+FSSOBGyhK+6jVCmATBuXB3YBFwY4X8/pfQOw3qP/+cClWCPNP32qYwtoAf5byvl1uEeHUMbp2QQpHAPIVnF57SoKCnPBFmZNsZWHLn5hKgAfObk/KWgpnQ30C3CN553sngh1etjJf0yASpNLly+dzEMh4jkGuADbexe0wuCRvzmavB0gnhrYVv4fgEZBZPpRUPm+wHO8NvZb0ZfCBvPNWCOtVYC4TsAahuLyZO0g1zwV21D0KwEKZmxP2DpsBea+CO81Dms0isv3pwWQ6eDen11AWoDzBtuYIdgKasMA5315Yr3/O1eeN6zB1whoia1c+9L7XWxZMRFIChBuALZxUICHw1zjRJcfdwJ9gsgMwBoXvwV7vtgGjGzgnCDnT/e8a08EOF+Vwt+YjmH0Hh6prCdMJQoMGSGAcerJUxdiK8g
2018-07-16 12:11:39 +02:00
"text/plain": [
2018-07-24 11:04:25 +02:00
"<Figure size 1080x720 with 1 Axes>"
2018-07-16 12:11:39 +02:00
]
},
"metadata": {},
2018-07-20 11:54:14 +02:00
"output_type": "display_data"
2018-07-16 11:54:56 +02:00
}
],
"source": [
"plot_emoji_list(sentiment_vectors=edist.list_sentiment_emoticon_vectors, unicode_repr=edist.list_emoticon_emojis, title=\"Emoticon Emoji space\")"
]
},
{
"cell_type": "code",
2018-07-24 11:04:25 +02:00
"execution_count": 8,
2018-07-16 11:54:56 +02:00
"metadata": {},
2018-07-16 12:11:39 +02:00
"outputs": [
{
"data": {
2018-07-24 11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kSdKwtEGCcyiuBBahVHT2rGJ6V2b+uL6QJEmS1AomOCVJkjQsPQnOzIxWHgPnA9sAy1fH/6X3JkN/B64B/gg8QumEHtW1ywFbAq8FNuzl3psyc9PhfG5JkiS1F/fglCRJ0oi0eg9O4B7K8vMezcnNHwInZ+afBgjtnGr+2ZRE6DbMa7K5UUQsl5mPDDCHJEmS2pwVnJIkSRqWNlii/hVgPUqX9aWBGZR/wJ9Iqea8k9J86FPAFcDGwPPAGsBM4KrMfPvYhy1JkqRWMsEpSZKkYWmDBOdQPQw8CGwA7A9sDZwL/I6SKH0iMx+sLzxJkiQNh0vUJUmSNCKjsAfn08CiDY84GtiHsq8mlI7o21c/oSxhX5XSNX0CsCcwi9IlfRFgpWp8NrB5dc+bgIuBz1Tz3gUsGxFPALtn5pMj+JVIkiRpDJnglCRJ0oiMwh6cywEXAjtUxz8CVgE+UB2fCCwEXE2pynw7sBXwNeBjwBTgKMpy9KeA44AVKInOHitQkp/LAa8HXgr8G3gLparzbQN9bkmSJLUHl6hLkiRpWDpwiXqjEyhJzeMoy9V3BZ4B1gfOBvbKzAdqi06SJEmDNmHgSyRJkqS2tCewCaWacxKlGvNa4DVN1/2DsvdmY8f0vwJLAC+nJDehVHS+AniUFy6RlyRJUhszwSlJkqQRyczo2UdztI6BxRoeuTjwXmBT4FuUbumzKAnM11KSnDMbrl8T+ALwAJDAXMoS9Z8CX2+47nbgz8Dq1XtJkiR1APfglCRJ0oi0eg/OPo4XaRh6mLLPZp8hAfM3jZ1BSW4GJRm6LyWJuRgl4Xla9foRpTnRusBt/TxDkiRJbcI9OCVJkjQsHbgH5+PAQcBvgD0o3dn
2018-07-16 12:11:39 +02:00
"text/plain": [
2018-07-24 11:04:25 +02:00
"<Figure size 1080x720 with 1 Axes>"
2018-07-16 12:11:39 +02:00
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
2018-07-24 11:04:25 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAABNwAAAN6CAYAAABVL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mePOg9SKiJgHbNY1+oLMfNRMTJckSZIkSQKrlEqSJEmSJEmtsoSbJEmSJEmS1CJLuEmSJEmSJEktMuAmSZIkSZIktciAmyRJkiRJktQiA26SJEmSJElSiwy4SZIkSZIkSS0y4CZJkiRJkiS1yICbJEmSJEmS1CIDbpIkSZIkSVKLDLhJkiRJkiRJLTLgJkmSJEmSJLXIgJskSZIkSZLUIgNukiRJkiRJUosMuEmSJEmSJEktMuAmSZIkSZIktciAmyRJkiRJktQiA26SJEmSJElSiwy4SZIkSZIkSS0y4CZJkiRJkiS1yICbJEmSJEmS1CIDbpIkSZIkSVKLDLhJkiRJkiRJLTLgJkmSJEmSJLXIgJskSZIkSZLUIgNukiRJkiRJUosMuEmSJEmSJEktMuAmSZIkSZIktciAmyRJkiRJktSiuePOgKSZERGPBV4ALAAuBk7JzJvGmytJkiRJkpY+kZnjzoOkGRAR+wCfBh5UR10HPDMzzxpfriRJkiRJWvoYcJOWIRGxKvB24DWUEq63AA/PzMvHmjFJkiRJkpYituEmLUMy87bMPBJ4SR21OvCcMWZJkiRJkqSljgE3aSkWEcv3mXRn4/1qM5EXSZIkSZKWFQbcpKXbxyLiHRGxUmdEDcK9ppFmu5nPliRJkiRJSy8DbtLS7RLgP4ALImLviNgI+CrwxEaa/SPiGWPJnSRJkiRJSyE7TZCWYhGxPXAu0K9qacdtwBMz87zpz5UkSZIkSUs3S7hJS7HMvAg4CLh9SNJVgW9HxCbTnytJkiRJkpZulnCTlgE
2018-07-16 12:11:39 +02:00
"text/plain": [
2018-07-24 11:04:25 +02:00
"<Figure size 1080x720 with 1 Axes>"
2018-07-16 12:11:39 +02:00
]
},
"metadata": {},
2018-07-20 11:54:14 +02:00
"output_type": "display_data"
2018-07-16 12:11:39 +02:00
}
],
2018-07-16 11:54:56 +02:00
"source": [
"plot_emoji_list(sentiment_vectors=edist.list_sentiment_vectors, unicode_repr=edist.list_emojis, title=\"Full Emoji space\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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",
2018-07-23 20:11:24 +02:00
"version": "3.6.5"
2018-07-16 11:54:56 +02:00
}
},
"nbformat": 4,
"nbformat_minor": 2
}