1018 lines
39 KiB
Plaintext
1018 lines
39 KiB
Plaintext
{
|
||
"cells": [
|
||
{
|
||
"cell_type": "markdown",
|
||
"metadata": {},
|
||
"source": [
|
||
"# Emoticon Emoji Assignment\n",
|
||
"https://en.wikipedia.org/wiki/List_of_emoticons\n",
|
||
"download of eastern and western table as csv file in project git folder"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 1,
|
||
"metadata": {
|
||
"collapsed": true
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"import pandas as pd\n",
|
||
"import math"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 2,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/html": [
|
||
"<div>\n",
|
||
"<style>\n",
|
||
" .dataframe thead tr:only-child th {\n",
|
||
" text-align: right;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe thead th {\n",
|
||
" text-align: left;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe tbody tr th {\n",
|
||
" vertical-align: top;\n",
|
||
" }\n",
|
||
"</style>\n",
|
||
"<table border=\"1\" class=\"dataframe\">\n",
|
||
" <thead>\n",
|
||
" <tr style=\"text-align: right;\">\n",
|
||
" <th></th>\n",
|
||
" <th>icon0</th>\n",
|
||
" <th>icon1</th>\n",
|
||
" <th>icon2</th>\n",
|
||
" <th>icon3</th>\n",
|
||
" <th>icon4</th>\n",
|
||
" <th>icon5</th>\n",
|
||
" <th>icon6</th>\n",
|
||
" <th>icon7</th>\n",
|
||
" <th>icon8</th>\n",
|
||
" <th>icon9</th>\n",
|
||
" <th>icon10</th>\n",
|
||
" <th>emoji</th>\n",
|
||
" <th>meaning</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>:‑) :)</td>\n",
|
||
" <td>:-] :]</td>\n",
|
||
" <td>:-3 :3</td>\n",
|
||
" <td>:-> :></td>\n",
|
||
" <td>8-) 8)</td>\n",
|
||
" <td>:-} :}</td>\n",
|
||
" <td>:o)</td>\n",
|
||
" <td>:c)</td>\n",
|
||
" <td>:^)</td>\n",
|
||
" <td>=]</td>\n",
|
||
" <td>=)</td>\n",
|
||
" <td>☺️🙂😊😀😁</td>\n",
|
||
" <td>Smiley or happy face.[4][5][6]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>:‑D :D</td>\n",
|
||
" <td>8‑D 8D</td>\n",
|
||
" <td>x‑D xD</td>\n",
|
||
" <td>X‑D XD</td>\n",
|
||
" <td>=D</td>\n",
|
||
" <td>=3</td>\n",
|
||
" <td>B^D</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😃😄😆😍</td>\n",
|
||
" <td>Laughing,[4] big grin,[5][6] laugh with glasse...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>:-))</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>Very happy or double chin[7]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>:‑( :(</td>\n",
|
||
" <td>:‑c :c</td>\n",
|
||
" <td>:‑< :<</td>\n",
|
||
" <td>:‑[ :[</td>\n",
|
||
" <td>:-||</td>\n",
|
||
" <td>>:[</td>\n",
|
||
" <td>:{</td>\n",
|
||
" <td>:@</td>\n",
|
||
" <td>>:(</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>☹️🙁😠😡😞😟😣😖</td>\n",
|
||
" <td>Frown,[4][5][6] sad,[9] angry,[7] pouting</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>:'‑( :'(</td>\n",
|
||
" <td>😢😭</td>\n",
|
||
" <td>Crying[9]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>5</th>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>:'‑) :')</td>\n",
|
||
" <td>😂</td>\n",
|
||
" <td>Tears of happiness[9]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>6</th>\n",
|
||
" <td>D‑':</td>\n",
|
||
" <td>D:<</td>\n",
|
||
" <td>D:</td>\n",
|
||
" <td>D8</td>\n",
|
||
" <td>D;</td>\n",
|
||
" <td>D=</td>\n",
|
||
" <td>DX</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😨😧😦😱😫😩</td>\n",
|
||
" <td>Horror, disgust, sadness, great dismay[5][6] (...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>7</th>\n",
|
||
" <td>:‑O :O</td>\n",
|
||
" <td>:‑o :o</td>\n",
|
||
" <td>:-0</td>\n",
|
||
" <td>8‑0</td>\n",
|
||
" <td>>:O</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😮😯😲</td>\n",
|
||
" <td>Surprise,[3] shock,[4][10] yawn[11]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>8</th>\n",
|
||
" <td>:-* :*</td>\n",
|
||
" <td>:×</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😗😙😚😘😍</td>\n",
|
||
" <td>Kiss</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>9</th>\n",
|
||
" <td>;‑) ;)</td>\n",
|
||
" <td>*-) *)</td>\n",
|
||
" <td>;‑] ;]</td>\n",
|
||
" <td>;^)</td>\n",
|
||
" <td>:‑,</td>\n",
|
||
" <td>;D</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😉😜😘</td>\n",
|
||
" <td>Wink,[4][5][6] smirk[10][11]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>10</th>\n",
|
||
" <td>:‑P :P</td>\n",
|
||
" <td>X‑P XP</td>\n",
|
||
" <td>x‑p xp</td>\n",
|
||
" <td>:‑p :p</td>\n",
|
||
" <td>:‑Þ :Þ</td>\n",
|
||
" <td>:‑þ :þ</td>\n",
|
||
" <td>:‑b :b</td>\n",
|
||
" <td>d:</td>\n",
|
||
" <td>=p</td>\n",
|
||
" <td>>:P</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😛😝😜🤑</td>\n",
|
||
" <td>Tongue sticking out, cheeky/playful,[4] blowin...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>11</th>\n",
|
||
" <td>:‑/ :/</td>\n",
|
||
" <td>:‑.</td>\n",
|
||
" <td>>:\\</td>\n",
|
||
" <td>>:/</td>\n",
|
||
" <td>:\\</td>\n",
|
||
" <td>=/</td>\n",
|
||
" <td>=\\</td>\n",
|
||
" <td>:L</td>\n",
|
||
" <td>=L</td>\n",
|
||
" <td>:S</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>🤔😕😟</td>\n",
|
||
" <td>Skeptical, annoyed, undecided, uneasy, hesitan...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>12</th>\n",
|
||
" <td>:‑| :|</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😐😑</td>\n",
|
||
" <td>Straight face[5] no expression, indecision[9]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>13</th>\n",
|
||
" <td>:$</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😳😞😖</td>\n",
|
||
" <td>Embarrassed,[6] blushing[7]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>14</th>\n",
|
||
" <td>:‑X :X</td>\n",
|
||
" <td>:‑# :#</td>\n",
|
||
" <td>:‑& :&</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>🤐😶</td>\n",
|
||
" <td>Sealed lips or wearing braces,[4] tongue-tied[9]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>15</th>\n",
|
||
" <td>O:‑) O:)</td>\n",
|
||
" <td>0:‑3 0:3</td>\n",
|
||
" <td>0:‑) 0:)</td>\n",
|
||
" <td>0;^)</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😇👼</td>\n",
|
||
" <td>Angel,[4][5][10] saint,[9] innocent</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>16</th>\n",
|
||
" <td>>:‑) >:)</td>\n",
|
||
" <td>}:‑) }:)</td>\n",
|
||
" <td>3:‑) 3:)</td>\n",
|
||
" <td>>;)</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😈</td>\n",
|
||
" <td>Evil,[5] devilish[9]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>17</th>\n",
|
||
" <td>|;‑)</td>\n",
|
||
" <td>|‑O</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>😎😪</td>\n",
|
||
" <td>Cool,[9] bored/yawning[10]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>18</th>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>:‑J</td>\n",
|
||
" <td>😏😒</td>\n",
|
||
" <td>Tongue-in-cheek[12]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>19</th>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>#‑)</td>\n",
|
||
" <td>—</td>\n",
|
||
" <td>Partied all night[9]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>20</th>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>%‑) %)</td>\n",
|
||
" <td>😵😕🤕</td>\n",
|
||
" <td>Drunk,[9] confused</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>21</th>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>:‑###.. :###..</td>\n",
|
||
" <td>🤒😷🤢</td>\n",
|
||
" <td>Being sick[9]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>22</th>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td><:‑|</td>\n",
|
||
" <td>—</td>\n",
|
||
" <td>Dumb, dunce-like[10]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>23</th>\n",
|
||
" <td>',:-|</td>\n",
|
||
" <td>',:-l</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>🤨</td>\n",
|
||
" <td>Scepticism, disbelief, or disapproval[13][14]</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>24</th>\n",
|
||
" <td><_<</td>\n",
|
||
" <td>>_></td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>NaN</td>\n",
|
||
" <td>Sideways look. Devious or guilty.</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" icon0 icon1 icon2 icon3 \\\n",
|
||
"0 :‑) :) :-] :] :-3 :3 :-> :> \n",
|
||
"1 :‑D :D 8‑D 8D x‑D xD X‑D XD \n",
|
||
"2 :-)) :-)) :-)) :-)) \n",
|
||
"3 :‑( :( :‑c :c :‑< :< :‑[ :[ \n",
|
||
"4 :'‑( :'( :'‑( :'( :'‑( :'( :'‑( :'( \n",
|
||
"5 :'‑) :') :'‑) :') :'‑) :') :'‑) :') \n",
|
||
"6 D‑': D:< D: D8 \n",
|
||
"7 :‑O :O :‑o :o :-0 8‑0 \n",
|
||
"8 :-* :* :× NaN NaN \n",
|
||
"9 ;‑) ;) *-) *) ;‑] ;] ;^) \n",
|
||
"10 :‑P :P X‑P XP x‑p xp :‑p :p \n",
|
||
"11 :‑/ :/ :‑. >:\\ >:/ \n",
|
||
"12 :‑| :| NaN NaN NaN \n",
|
||
"13 :$ NaN NaN NaN \n",
|
||
"14 :‑X :X :‑# :# :‑& :& NaN \n",
|
||
"15 O:‑) O:) 0:‑3 0:3 0:‑) 0:) 0;^) \n",
|
||
"16 >:‑) >:) }:‑) }:) 3:‑) 3:) >;) \n",
|
||
"17 |;‑) |‑O NaN NaN \n",
|
||
"18 :‑J :‑J :‑J :‑J \n",
|
||
"19 #‑) #‑) #‑) #‑) \n",
|
||
"20 %‑) %) %‑) %) %‑) %) %‑) %) \n",
|
||
"21 :‑###.. :###.. :‑###.. :###.. :‑###.. :###.. :‑###.. :###.. \n",
|
||
"22 <:‑| <:‑| <:‑| <:‑| \n",
|
||
"23 ',:-| ',:-l NaN NaN \n",
|
||
"24 <_< >_> NaN NaN \n",
|
||
"\n",
|
||
" icon4 icon5 icon6 icon7 \\\n",
|
||
"0 8-) 8) :-} :} :o) :c) \n",
|
||
"1 =D =3 B^D NaN \n",
|
||
"2 :-)) :-)) :-)) :-)) \n",
|
||
"3 :-|| >:[ :{ :@ \n",
|
||
"4 :'‑( :'( :'‑( :'( :'‑( :'( :'‑( :'( \n",
|
||
"5 :'‑) :') :'‑) :') :'‑) :') :'‑) :') \n",
|
||
"6 D; D= DX NaN \n",
|
||
"7 >:O NaN NaN NaN \n",
|
||
"8 NaN NaN NaN NaN \n",
|
||
"9 :‑, ;D NaN NaN \n",
|
||
"10 :‑Þ :Þ :‑þ :þ :‑b :b d: \n",
|
||
"11 :\\ =/ =\\ :L \n",
|
||
"12 NaN NaN NaN NaN \n",
|
||
"13 NaN NaN NaN NaN \n",
|
||
"14 NaN NaN NaN NaN \n",
|
||
"15 NaN NaN NaN NaN \n",
|
||
"16 NaN NaN NaN NaN \n",
|
||
"17 NaN NaN NaN NaN \n",
|
||
"18 :‑J :‑J :‑J :‑J \n",
|
||
"19 #‑) #‑) #‑) #‑) \n",
|
||
"20 %‑) %) %‑) %) %‑) %) %‑) %) \n",
|
||
"21 :‑###.. :###.. :‑###.. :###.. :‑###.. :###.. :‑###.. :###.. \n",
|
||
"22 <:‑| <:‑| <:‑| <:‑| \n",
|
||
"23 NaN NaN NaN NaN \n",
|
||
"24 NaN NaN NaN NaN \n",
|
||
"\n",
|
||
" icon8 icon9 icon10 emoji \\\n",
|
||
"0 :^) =] =) ☺️🙂😊😀😁 \n",
|
||
"1 NaN NaN NaN 😃😄😆😍 \n",
|
||
"2 :-)) :-)) :-)) NaN \n",
|
||
"3 >:( NaN NaN ☹️🙁😠😡😞😟😣😖 \n",
|
||
"4 :'‑( :'( :'‑( :'( :'‑( :'( 😢😭 \n",
|
||
"5 :'‑) :') :'‑) :') :'‑) :') 😂 \n",
|
||
"6 NaN NaN NaN 😨😧😦😱😫😩 \n",
|
||
"7 NaN NaN NaN 😮😯😲 \n",
|
||
"8 NaN NaN NaN 😗😙😚😘😍 \n",
|
||
"9 NaN NaN NaN 😉😜😘 \n",
|
||
"10 =p >:P NaN 😛😝😜🤑 \n",
|
||
"11 =L :S NaN 🤔😕😟 \n",
|
||
"12 NaN NaN NaN 😐😑 \n",
|
||
"13 NaN NaN NaN 😳😞😖 \n",
|
||
"14 NaN NaN NaN 🤐😶 \n",
|
||
"15 NaN NaN NaN 😇👼 \n",
|
||
"16 NaN NaN NaN 😈 \n",
|
||
"17 NaN NaN NaN 😎😪 \n",
|
||
"18 :‑J :‑J :‑J 😏😒 \n",
|
||
"19 #‑) #‑) #‑) — \n",
|
||
"20 %‑) %) %‑) %) %‑) %) 😵😕🤕 \n",
|
||
"21 :‑###.. :###.. :‑###.. :###.. :‑###.. :###.. 🤒😷🤢 \n",
|
||
"22 <:‑| <:‑| <:‑| — \n",
|
||
"23 NaN NaN NaN 🤨 \n",
|
||
"24 NaN NaN NaN NaN \n",
|
||
"\n",
|
||
" meaning \n",
|
||
"0 Smiley or happy face.[4][5][6] \n",
|
||
"1 Laughing,[4] big grin,[5][6] laugh with glasse... \n",
|
||
"2 Very happy or double chin[7] \n",
|
||
"3 Frown,[4][5][6] sad,[9] angry,[7] pouting \n",
|
||
"4 Crying[9] \n",
|
||
"5 Tears of happiness[9] \n",
|
||
"6 Horror, disgust, sadness, great dismay[5][6] (... \n",
|
||
"7 Surprise,[3] shock,[4][10] yawn[11] \n",
|
||
"8 Kiss \n",
|
||
"9 Wink,[4][5][6] smirk[10][11] \n",
|
||
"10 Tongue sticking out, cheeky/playful,[4] blowin... \n",
|
||
"11 Skeptical, annoyed, undecided, uneasy, hesitan... \n",
|
||
"12 Straight face[5] no expression, indecision[9] \n",
|
||
"13 Embarrassed,[6] blushing[7] \n",
|
||
"14 Sealed lips or wearing braces,[4] tongue-tied[9] \n",
|
||
"15 Angel,[4][5][10] saint,[9] innocent \n",
|
||
"16 Evil,[5] devilish[9] \n",
|
||
"17 Cool,[9] bored/yawning[10] \n",
|
||
"18 Tongue-in-cheek[12] \n",
|
||
"19 Partied all night[9] \n",
|
||
"20 Drunk,[9] confused \n",
|
||
"21 Being sick[9] \n",
|
||
"22 Dumb, dunce-like[10] \n",
|
||
"23 Scepticism, disbelief, or disapproval[13][14] \n",
|
||
"24 Sideways look. Devious or guilty. "
|
||
]
|
||
},
|
||
"execution_count": 2,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"df = pd.read_csv(\"/Users/Carsten/GitRepos/NLP-LAB/Project/Tools/Emoji-Emoticon-Assignment_western.csv\", names=[\"icon0\",\"icon1\",\"icon2\",\"icon3\",\"icon4\",\"icon5\",\"icon6\",\"icon7\",\"icon8\",\"icon9\",\"icon10\",\"emoji\",\"meaning\"],header=0)\n",
|
||
"df#.head()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 3,
|
||
"metadata": {
|
||
"collapsed": true
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"#list of emoticon , list of emojis, meaning as string\n",
|
||
"assignment = []\n",
|
||
"\n",
|
||
"tmp_single_assignments = []"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 4,
|
||
"metadata": {
|
||
"collapsed": true
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"#icon,icon1,icon2,icon3,icon4,icon5,icon6,icon7,icon8,icon9,icon10,emoji,meaning \n",
|
||
"for pos,d in df.iterrows():\n",
|
||
" #print(d)\n",
|
||
" emoticons = []\n",
|
||
" #ignore rows with no entry\n",
|
||
" if(isinstance(d[\"emoji\"],str) and d[\"emoji\"]!=\"—\"):\n",
|
||
" #concatinate all emoticons in one list\n",
|
||
" emoticons = []\n",
|
||
" column_name = \"icon\"\n",
|
||
" column_number = 0\n",
|
||
" for col in range(11):\n",
|
||
" column_name+=str(column_number)\n",
|
||
" if(isinstance(d[column_name],str) and d[column_name]!=\"\"):\n",
|
||
" #print(type(d[column_name]))\n",
|
||
" #print(d[column_name])\n",
|
||
" emoticons+=d[column_name].split()\n",
|
||
" column_name = \"icon\"\n",
|
||
" column_number += 1\n",
|
||
"\n",
|
||
" #remove doublicate entries in emoticons\n",
|
||
" emoticons=list(set(emoticons))\n",
|
||
" \n",
|
||
" #make list of emoticons\n",
|
||
" emojis = list(d[\"emoji\"])\n",
|
||
" \n",
|
||
" #for tmp ideas\n",
|
||
" #for e in emoticons:\n",
|
||
" # print([e,emojis])\n",
|
||
" # tmp_single_assignments.append([e,emojis])\n",
|
||
"\n",
|
||
"\n",
|
||
" \n",
|
||
" #append triple\n",
|
||
" assignment.append([emoticons,emojis,str(d[\"meaning\"])])\n",
|
||
"\n",
|
||
"#print(assignment)\n",
|
||
"\n",
|
||
" "
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 5,
|
||
"metadata": {
|
||
"collapsed": true
|
||
},
|
||
"outputs": [],
|
||
"source": [
|
||
"own_assignment = []"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 7,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
":c) |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":c) ☺\n",
|
||
":-3 |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁3\n",
|
||
":-3 😊\n",
|
||
":-} |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":-} ☺\n",
|
||
":> |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":> ☺\n",
|
||
"=) |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
"=) ☺\n",
|
||
":‑) |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":‑) ☺\n",
|
||
":^) |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁3\n",
|
||
":^) 😊\n",
|
||
"8) |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
"8) ☺\n",
|
||
":} |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":} ☺\n",
|
||
":-> |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":-> ☺\n",
|
||
":-] |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":-] ☺\n",
|
||
":] |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":] ☺\n",
|
||
"=] |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
"=] ☺\n",
|
||
":o) |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":o) ☺\n",
|
||
":) |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":) ☺\n",
|
||
"8-) |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
"8-) ☺\n",
|
||
":3 |0 = ☺|1 = ️|2 = 🙂|3 = 😊|4 = 😀|5 = 😁\n",
|
||
":3 ☺\n",
|
||
"xD |0 = 😃|1 = 😄|2 = 😆|3 = 😍2\n",
|
||
"xD 😆\n",
|
||
"x‑D |0 = 😃|1 = 😄|2 = 😆|3 = 😍2\n",
|
||
"x‑D 😆\n",
|
||
"=3 |0 = 😃|1 = 😄|2 = 😆|3 = 😍\n",
|
||
"=3 😃\n",
|
||
"B^D |0 = 😃|1 = 😄|2 = 😆|3 = 😍1\n",
|
||
"B^D 😄\n",
|
||
"XD |0 = 😃|1 = 😄|2 = 😆|3 = 😍2\n",
|
||
"XD 😆\n",
|
||
"=D |0 = 😃|1 = 😄|2 = 😆|3 = 😍\n",
|
||
"=D 😃\n",
|
||
"8‑D |0 = 😃|1 = 😄|2 = 😆|3 = 😍\n",
|
||
"8‑D 😃\n",
|
||
":‑D |0 = 😃|1 = 😄|2 = 😆|3 = 😍\n",
|
||
":‑D 😃\n",
|
||
"8D |0 = 😃|1 = 😄|2 = 😆|3 = 😍\n",
|
||
"8D 😃\n",
|
||
":D |0 = 😃|1 = 😄|2 = 😆|3 = 😍\n",
|
||
":D 😃\n",
|
||
"X‑D |0 = 😃|1 = 😄|2 = 😆|3 = 😍2\n",
|
||
"X‑D 😆\n",
|
||
":‑[ |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖2\n",
|
||
":‑[ 🙁\n",
|
||
":@ |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖4\n",
|
||
":@ 😡\n",
|
||
":‑( |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖2\n",
|
||
":‑( 🙁\n",
|
||
":( |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖2\n",
|
||
":( 🙁\n",
|
||
":{ |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖2\n",
|
||
":{ 🙁\n",
|
||
":‑< |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖2\n",
|
||
":‑< 🙁\n",
|
||
">:( |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖4\n",
|
||
">:( 😡\n",
|
||
":c |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖0\n",
|
||
":c ☹\n",
|
||
":< |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖\n",
|
||
":< ☹\n",
|
||
":‑c |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖\n",
|
||
":‑c ☹\n",
|
||
">:[ |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖4\n",
|
||
">:[ 😡\n",
|
||
":-|| |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖2\n",
|
||
":-|| 🙁\n",
|
||
":[ |0 = ☹|1 = ️|2 = 🙁|3 = 😠|4 = 😡|5 = 😞|6 = 😟|7 = 😣|8 = 😖2\n",
|
||
":[ 🙁\n",
|
||
":'‑( |0 = 😢|1 = 😭\n",
|
||
":'‑( 😢\n",
|
||
":'( |0 = 😢|1 = 😭\n",
|
||
":'( 😢\n",
|
||
":') |0 = 😂\n",
|
||
":') 😂\n",
|
||
":'‑) |0 = 😂\n",
|
||
":'‑) 😂\n",
|
||
"DX |0 = 😨|1 = 😧|2 = 😦|3 = 😱|4 = 😫|5 = 😩4\n",
|
||
"DX 😫\n",
|
||
"D: |0 = 😨|1 = 😧|2 = 😦|3 = 😱|4 = 😫|5 = 😩1\n",
|
||
"D: 😧\n",
|
||
"D:< |0 = 😨|1 = 😧|2 = 😦|3 = 😱|4 = 😫|5 = 😩5\n",
|
||
"D:< 😩\n",
|
||
"D8 |0 = 😨|1 = 😧|2 = 😦|3 = 😱|4 = 😫|5 = 😩2\n",
|
||
"D8 😦\n",
|
||
"D= |0 = 😨|1 = 😧|2 = 😦|3 = 😱|4 = 😫|5 = 😩2\n",
|
||
"D= 😦\n",
|
||
"D; |0 = 😨|1 = 😧|2 = 😦|3 = 😱|4 = 😫|5 = 😩5\n",
|
||
"D; 😩\n",
|
||
"D‑': |0 = 😨|1 = 😧|2 = 😦|3 = 😱|4 = 😫|5 = 😩\n",
|
||
"D‑': 😨\n",
|
||
":-0 |0 = 😮|1 = 😯|2 = 😲0\n",
|
||
":-0 😮\n",
|
||
":‑O |0 = 😮|1 = 😯|2 = 😲\n",
|
||
":‑O 😮\n",
|
||
":o |0 = 😮|1 = 😯|2 = 😲\n",
|
||
":o 😮\n",
|
||
":O |0 = 😮|1 = 😯|2 = 😲\n",
|
||
":O 😮\n",
|
||
":‑o |0 = 😮|1 = 😯|2 = 😲\n",
|
||
":‑o 😮\n",
|
||
">:O |0 = 😮|1 = 😯|2 = 😲2\n",
|
||
">:O 😲\n",
|
||
"8‑0 |0 = 😮|1 = 😯|2 = 😲0\n",
|
||
"8‑0 😮\n",
|
||
":× |0 = 😗|1 = 😙|2 = 😚|3 = 😘|4 = 😍3\n",
|
||
":× 😘\n",
|
||
":* |0 = 😗|1 = 😙|2 = 😚|3 = 😘|4 = 😍3\n",
|
||
":* 😘\n",
|
||
":-* |0 = 😗|1 = 😙|2 = 😚|3 = 😘|4 = 😍3\n",
|
||
":-* 😘\n",
|
||
";] |0 = 😉|1 = 😜|2 = 😘\n",
|
||
";] 😉\n",
|
||
";) |0 = 😉|1 = 😜|2 = 😘\n",
|
||
";) 😉\n",
|
||
";‑) |0 = 😉|1 = 😜|2 = 😘\n",
|
||
";‑) 😉\n",
|
||
"*-) |0 = 😉|1 = 😜|2 = 😘1\n",
|
||
"*-) 😜\n",
|
||
";^) |0 = 😉|1 = 😜|2 = 😘1\n",
|
||
";^) 😜\n",
|
||
";D |0 = 😉|1 = 😜|2 = 😘1\n",
|
||
";D 😜\n",
|
||
";‑] |0 = 😉|1 = 😜|2 = 😘\n",
|
||
";‑] 😉\n",
|
||
"*) |0 = 😉|1 = 😜|2 = 😘1\n",
|
||
"*) 😜\n",
|
||
":‑, |0 = 😉|1 = 😜|2 = 😘2\n",
|
||
":‑, 😘\n",
|
||
":‑Þ |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
":‑Þ 😛\n",
|
||
":þ |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
":þ 😛\n",
|
||
":‑þ |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
":‑þ 😛\n",
|
||
":‑b |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
":‑b 😛\n",
|
||
"x‑p |0 = 😛|1 = 😝|2 = 😜|3 = 🤑1\n",
|
||
"x‑p 😝\n",
|
||
">:P |0 = 😛|1 = 😝|2 = 😜|3 = 🤑2\n",
|
||
">:P 😜\n",
|
||
"XP |0 = 😛|1 = 😝|2 = 😜|3 = 🤑1\n",
|
||
"XP 😝\n",
|
||
":Þ |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
":Þ 😛\n",
|
||
":P |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
":P 😛\n",
|
||
"xp |0 = 😛|1 = 😝|2 = 😜|3 = 🤑1\n",
|
||
"xp 😝\n",
|
||
":b |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
":b 😛\n",
|
||
"=p |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
"=p 😛\n",
|
||
"d: |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
"d: 😛\n",
|
||
":p |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
":p 😛\n",
|
||
":‑p |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
":‑p 😛\n",
|
||
":‑P |0 = 😛|1 = 😝|2 = 😜|3 = 🤑\n",
|
||
":‑P 😛\n",
|
||
"X‑P |0 = 😛|1 = 😝|2 = 😜|3 = 🤑1\n",
|
||
"X‑P 😝\n",
|
||
":\\ |0 = 🤔|1 = 😕|2 = 😟\n",
|
||
":\\ 🤔\n",
|
||
">:/ |0 = 🤔|1 = 😕|2 = 😟\n",
|
||
">:/ 🤔\n",
|
||
":/ |0 = 🤔|1 = 😕|2 = 😟\n",
|
||
":/ 🤔\n",
|
||
"=\\ |0 = 🤔|1 = 😕|2 = 😟\n",
|
||
"=\\ 🤔\n",
|
||
":L |0 = 🤔|1 = 😕|2 = 😟1\n",
|
||
":L 😕\n",
|
||
":S |0 = 🤔|1 = 😕|2 = 😟1\n",
|
||
":S 😕\n",
|
||
":‑/ |0 = 🤔|1 = 😕|2 = 😟\n",
|
||
":‑/ 🤔\n",
|
||
"=L |0 = 🤔|1 = 😕|2 = 😟1\n",
|
||
"=L 😕\n",
|
||
":‑. |0 = 🤔|1 = 😕|2 = 😟\n",
|
||
":‑. 🤔\n",
|
||
"=/ |0 = 🤔|1 = 😕|2 = 😟1\n",
|
||
"=/ 😕\n",
|
||
">:\\ |0 = 🤔|1 = 😕|2 = 😟\n",
|
||
">:\\ 🤔\n",
|
||
":‑| |0 = 😐|1 = 😑\n",
|
||
":‑| 😐\n",
|
||
":| |0 = 😐|1 = 😑\n",
|
||
":| 😐\n",
|
||
":$ |0 = 😳|1 = 😞|2 = 😖\n",
|
||
":$ 😳\n",
|
||
":& |0 = 🤐|1 = 😶1\n",
|
||
":& 😶\n",
|
||
":‑X |0 = 🤐|1 = 😶\n",
|
||
":‑X 🤐\n",
|
||
":# |0 = 🤐|1 = 😶\n",
|
||
":# 🤐\n",
|
||
":‑# |0 = 🤐|1 = 😶\n",
|
||
":‑# 🤐\n",
|
||
":‑& |0 = 🤐|1 = 😶\n",
|
||
":‑& 🤐\n",
|
||
":X |0 = 🤐|1 = 😶\n",
|
||
":X 🤐\n",
|
||
"0;^) |0 = 😇|1 = 👼\n",
|
||
"0;^) 😇\n",
|
||
"0:‑3 |0 = 😇|1 = 👼\n",
|
||
"0:‑3 😇\n",
|
||
"O:‑) |0 = 😇|1 = 👼\n",
|
||
"O:‑) 😇\n",
|
||
"0:) |0 = 😇|1 = 👼\n",
|
||
"0:) 😇\n",
|
||
"0:3 |0 = 😇|1 = 👼\n",
|
||
"0:3 😇\n",
|
||
"0:‑) |0 = 😇|1 = 👼\n",
|
||
"0:‑) 😇\n",
|
||
"O:) |0 = 😇|1 = 👼\n",
|
||
"O:) 😇\n",
|
||
"3:) |0 = 😈\n",
|
||
"3:) 😈\n",
|
||
">:‑) |0 = 😈\n",
|
||
">:‑) 😈\n",
|
||
">:) |0 = 😈\n",
|
||
">:) 😈\n",
|
||
">;) |0 = 😈\n",
|
||
">;) 😈\n",
|
||
"}:) |0 = 😈\n",
|
||
"}:) 😈\n",
|
||
"}:‑) |0 = 😈\n",
|
||
"}:‑) 😈\n",
|
||
"3:‑) |0 = 😈\n",
|
||
"3:‑) 😈\n",
|
||
"|‑O |0 = 😎|1 = 😪1\n",
|
||
"|‑O 😪\n",
|
||
"|;‑) |0 = 😎|1 = 😪1\n",
|
||
"|;‑) 😪\n",
|
||
":‑J |0 = 😏|1 = 😒\n",
|
||
":‑J 😏\n",
|
||
"%‑) |0 = 😵|1 = 😕|2 = 🤕\n",
|
||
"%‑) 😵\n",
|
||
"%) |0 = 😵|1 = 😕|2 = 🤕\n",
|
||
"%) 😵\n",
|
||
":###.. |0 = 🤒|1 = 😷|2 = 🤢2\n",
|
||
":###.. 🤢\n",
|
||
":‑###.. |0 = 🤒|1 = 😷|2 = 🤢2\n",
|
||
":‑###.. 🤢\n",
|
||
"',:-| |0 = 🤨\n",
|
||
"',:-| 🤨\n",
|
||
"',:-l |0 = 🤨\n",
|
||
"',:-l 🤨\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"for emoticons, emojis, meaning in assignment:\n",
|
||
" for emoticon in emoticons:\n",
|
||
" tmp = \" \"\n",
|
||
" c= 0\n",
|
||
" for emoji in emojis:\n",
|
||
" tmp+=\"|\"+str(c)+\" = \"+emoji\n",
|
||
" c+=1\n",
|
||
" number = input(str(emoticon)+str(tmp))\n",
|
||
" #if(not number.isnumeric() and int(number)in [0:len(emojis)]):\n",
|
||
" # number = 0\n",
|
||
" #else:\n",
|
||
" # number = int(number)\n",
|
||
" number = 0 if(number == \"\") else int(number)\n",
|
||
" \n",
|
||
" print(emoticon,emojis[number])\n",
|
||
" own_assignment.append([emoticon,emojis[number]])"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 8,
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"name": "stdout",
|
||
"output_type": "stream",
|
||
"text": [
|
||
"[[':c)', '☺'], [':c)', '☺'], [':-3', '😊'], [':-}', '☺'], [':>', '☺'], ['=)', '☺'], [':‑)', '☺'], [':^)', '😊'], ['8)', '☺'], [':}', '☺'], [':->', '☺'], [':-]', '☺'], [':]', '☺'], ['=]', '☺'], [':o)', '☺'], [':)', '☺'], ['8-)', '☺'], [':3', '☺'], ['xD', '😆'], ['x‑D', '😆'], ['=3', '😃'], ['B^D', '😄'], ['XD', '😆'], ['=D', '😃'], ['8‑D', '😃'], [':‑D', '😃'], ['8D', '😃'], [':D', '😃'], ['X‑D', '😆'], [':‑[', '🙁'], [':@', '😡'], [':‑(', '🙁'], [':(', '🙁'], [':{', '🙁'], [':‑<', '🙁'], ['>:(', '😡'], [':c', '☹'], [':<', '☹'], [':‑c', '☹'], ['>:[', '😡'], [':-||', '🙁'], [':[', '🙁'], [\":'‑(\", '😢'], [\":'(\", '😢'], [\":')\", '😂'], [\":'‑)\", '😂'], ['DX', '😫'], ['D:', '😧'], ['D:<', '😩'], ['D8', '😦'], ['D=', '😦'], ['D;', '😩'], [\"D‑':\", '😨'], [':-0', '😮'], [':‑O', '😮'], [':o', '😮'], [':O', '😮'], [':‑o', '😮'], ['>:O', '😲'], ['8‑0', '😮'], [':×', '😘'], [':*', '😘'], [':-*', '😘'], [';]', '😉'], [';)', '😉'], [';‑)', '😉'], ['*-)', '😜'], [';^)', '😜'], [';D', '😜'], [';‑]', '😉'], ['*)', '😜'], [':‑,', '😘'], [':‑Þ', '😛'], [':þ', '😛'], [':‑þ', '😛'], [':‑b', '😛'], ['x‑p', '😝'], ['>:P', '😜'], ['XP', '😝'], [':Þ', '😛'], [':P', '😛'], ['xp', '😝'], [':b', '😛'], ['=p', '😛'], ['d:', '😛'], [':p', '😛'], [':‑p', '😛'], [':‑P', '😛'], ['X‑P', '😝'], [':\\\\', '🤔'], ['>:/', '🤔'], [':/', '🤔'], ['=\\\\', '🤔'], [':L', '😕'], [':S', '😕'], [':‑/', '🤔'], ['=L', '😕'], [':‑.', '🤔'], ['=/', '😕'], ['>:\\\\', '🤔'], [':‑|', '😐'], [':|', '😐'], [':$', '😳'], [':&', '😶'], [':‑X', '🤐'], [':#', '🤐'], [':‑#', '🤐'], [':‑&', '🤐'], [':X', '🤐'], ['0;^)', '😇'], ['0:‑3', '😇'], ['O:‑)', '😇'], ['0:)', '😇'], ['0:3', '😇'], ['0:‑)', '😇'], ['O:)', '😇'], ['3:)', '😈'], ['>:‑)', '😈'], ['>:)', '😈'], ['>;)', '😈'], ['}:)', '😈'], ['}:‑)', '😈'], ['3:‑)', '😈'], ['|‑O', '😪'], ['|;‑)', '😪'], [':‑J', '😏'], ['%‑)', '😵'], ['%)', '😵'], [':###..', '🤢'], [':‑###..', '🤢'], [\"',:-|\", '\\U0001f928'], [\"',:-l\", '\\U0001f928']]\n"
|
||
]
|
||
}
|
||
],
|
||
"source": [
|
||
"print(own_assignment)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 12,
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"with open(\"../Assignment_emoticon_emoji.txt\" ,\"w\", encoding=\"utf-8\") as f:\n",
|
||
" for p in own_assignment:\n",
|
||
" string = \" \"+p[0]+\" text \"+p[1]+\" \\n\"\n",
|
||
" f.write(string)\n",
|
||
"\n"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": null,
|
||
"metadata": {
|
||
"collapsed": true
|
||
},
|
||
"outputs": [],
|
||
"source": []
|
||
}
|
||
],
|
||
"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",
|
||
"version": "3.6.3"
|
||
}
|
||
},
|
||
"nbformat": 4,
|
||
"nbformat_minor": 2
|
||
}
|