This commit is contained in:
Carsten 2018-07-03 14:22:49 +02:00
parent bde4216707
commit 95fe33083d

View File

@ -56,7 +56,10 @@
},
"outputs": [],
"source": [
"#locally defined based on the first analysis of parts of our twitter data: resulting in the 20 most used emojis\n",
"#we used them for our first approaches of prediction\n",
"top_emojis = ['😂','😭','😍','😩','😊','😘','🙏','🙌','😉','😁','😅','😎','😢','😒','😏','😌','😔','😋','😀','😤']\n",
"#possible initial set of predictions, only used in naive test cases\n",
"predictions = [\"🤐\",\"🤑\",\"🤒\",\"🤓\",\"🤔\",\"🤕\",\"🤗\",\"🤘\"]"
]
},
@ -96,6 +99,7 @@
}
],
"source": [
"#navigation into right path and generating classifier\n",
"import sys\n",
"sys.path.append(\"..\")\n",
"\n",
@ -323,7 +327,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 24,
"metadata": {
"collapsed": true
},
@ -331,7 +335,7 @@
"source": [
"text_input.on_submit(submit_new_message)\n",
"\n",
"#text_input.observe(lambda b: trigger_new_prediction(None, text_input.value))"
"text_input.observe(lambda b: trigger_new_prediction(None, text_input.value))"
]
},
{
@ -547,13 +551,13 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 25,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3b8a6a311c1e4a1bb2b711d59246577a",
"model_id": "1dddd15a4fa74985a42761c4de6a5598",
"version_major": 2,
"version_minor": 0
},