diff --git a/Project/Tools/emoji tester.ipynb b/Project/Tools/emoji tester.ipynb index 1f3ad70..23f3462 100644 --- a/Project/Tools/emoji tester.ipynb +++ b/Project/Tools/emoji tester.ipynb @@ -7,7 +7,45 @@ "outputs": [], "source": [ "import pandas as pd\n", - "from IPython.display import clear_output, Markdown, Math" + "from IPython.display import clear_output, Markdown, Math\n", + "import ipywidgets as widgets\n", + "import os" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "----\n", + "## file input stuff:\n", + "\n", + "* replace `test.txt` with your whatsapp log file" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "================================================================================\n", + "processing File: test.txt\n", + "================================================================================\n", + "================================================================================\n", + "successfully finished action: processing File: test.txt\n", + "================================================================================\n", + "================================================================================\n", + "Wrote output to test.txt.csv\n", + "================================================================================\n" + ] + } + ], + "source": [ + "%%bash\n", + "./whatsapp2csv.sh test.txt" ] }, { @@ -19,235 +57,12 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - " | date | \n", - "time | \n", - "person | \n", - "message | \n", - "
---|---|---|---|---|
0 | \n", - "10/18/16 | \n", - "11:18 | \n", - "Lena Carta | \n", - "Hallo Jonas ๐ | \n", - "
1 | \n", - "10/18/16 | \n", - "11:21 | \n", - "Jonas Weinz | \n", - "Moin moin ;) Vllt. bin ich aber gar nicht Jona... | \n", - "
2 | \n", - "10/18/16 | \n", - "11:21 | \n", - "Lena Carta | \n", - "๐ฑ๐ค | \n", - "
3 | \n", - "10/18/16 | \n", - "11:21 | \n", - "Sonja Vorwerk | \n", - "๐๐ | \n", - "
4 | \n", - "10/18/16 | \n", - "11:22 | \n", - "Caner Ucar | \n", - "๐๐๐ | \n", - "
5 | \n", - "10/18/16 | \n", - "11:22 | \n", - "Patrick (Arithmeum) | \n", - "hallo jeff | \n", - "
6 | \n", - "10/18/16 | \n", - "11:22 | \n", - "Caner Ucar | \n", - "Patrick kein Handy am Empfang | \n", - "
7 | \n", - "10/18/16 | \n", - "11:26 | \n", - "Patrick (Arithmeum) | \n", - "halts maul und geh ma duschen | \n", - "
8 | \n", - "10/18/16 | \n", - "11:34 | \n", - "Simon (Arithmeum) | \n", - "Hab dich als Carsten abgespeichert, selber Schuld | \n", - "
9 | \n", - "10/18/16 | \n", - "11:36 | \n", - "Caner Ucar | \n", - "Patrick ich hab geduscht mit Kristina und Sonja v | \n", - "
10 | \n", - "10/18/16 | \n", - "11:36 | \n", - "Lena Carta | \n", - "รคhm.... | \n", - "
11 | \n", - "10/18/16 | \n", - "11:37 | \n", - "Jonathan (Arithmeum) | \n", - "Caner benutzt das Damen-Bad | \n", - "
12 | \n", - "10/18/16 | \n", - "11:37 | \n", - "Jonas Weinz | \n", - "Lรผg doch nicht, du tanzt die ganze Zeit aufm T... | \n", - "
13 | \n", - "10/18/16 | \n", - "11:37 | \n", - "Jonathan (Arithmeum) | \n", - "bรครคh๐ฑ | \n", - "
14 | \n", - "10/18/16 | \n", - "11:40 | \n", - "Patrick (Arithmeum) | \n", - "ja caner so ist das unter frauen..da geht man ... | \n", - "
15 | \n", - "10/18/16 | \n", - "12:02 | \n", - "Thomas Koppelberg | \n", - "Eeemmm was? | \n", - "
16 | \n", - "10/18/16 | \n", - "12:12 | \n", - "Kristina Stellwag | \n", - "Thomas, du wolltest gestern ja nicht ๐ | \n", - "
17 | \n", - "10/18/16 | \n", - "12:14 | \n", - "Thomas Koppelberg | \n", - "Ich wollte einiges, aber ich kann mich zurรผckh... | \n", - "
18 | \n", - "10/18/16 | \n", - "12:19 | \n", - "Simon (Arithmeum) | \n", - "Genau ๐ | \n", - "
19 | \n", - "10/18/16 | \n", - "13:36 | \n", - "Caner Ucar | \n", - "Sex | \n", - "
\n", - " | unicode | \n", - "type | \n", - "
---|---|---|
228 | \n", - "231A..231B | \n", - "Emoji_Presentation | \n", - "
229 | \n", - "23E9..23EC | \n", - "Emoji_Presentation | \n", - "
230 | \n", - "23F0 | \n", - "Emoji_Presentation | \n", - "
231 | \n", - "23F3 | \n", - "Emoji_Presentation | \n", - "
232 | \n", - "25FD..25FE | \n", - "Emoji_Presentation | \n", - "
233 | \n", - "2614..2615 | \n", - "Emoji_Presentation | \n", - "
234 | \n", - "2648..2653 | \n", - "Emoji_Presentation | \n", - "
235 | \n", - "267F | \n", - "Emoji_Presentation | \n", - "
236 | \n", - "2693 | \n", - "Emoji_Presentation | \n", - "
237 | \n", - "26A1 | \n", - "Emoji_Presentation | \n", - "
238 | \n", - "26AA..26AB | \n", - "Emoji_Presentation | \n", - "
239 | \n", - "26BD..26BE | \n", - "Emoji_Presentation | \n", - "
240 | \n", - "26C4..26C5 | \n", - "Emoji_Presentation | \n", - "
241 | \n", - "26CE | \n", - "Emoji_Presentation | \n", - "
242 | \n", - "26D4 | \n", - "Emoji_Presentation | \n", - "
243 | \n", - "26EA | \n", - "Emoji_Presentation | \n", - "
244 | \n", - "26F2..26F3 | \n", - "Emoji_Presentation | \n", - "
245 | \n", - "26F5 | \n", - "Emoji_Presentation | \n", - "
246 | \n", - "26FA | \n", - "Emoji_Presentation | \n", - "
247 | \n", - "26FD | \n", - "Emoji_Presentation | \n", - "
248 | \n", - "2705 | \n", - "Emoji_Presentation | \n", - "
249 | \n", - "270A..270B | \n", - "Emoji_Presentation | \n", - "
250 | \n", - "2728 | \n", - "Emoji_Presentation | \n", - "
251 | \n", - "274C | \n", - "Emoji_Presentation | \n", - "
252 | \n", - "274E | \n", - "Emoji_Presentation | \n", - "
253 | \n", - "2753..2755 | \n", - "Emoji_Presentation | \n", - "
254 | \n", - "2757 | \n", - "Emoji_Presentation | \n", - "
255 | \n", - "2795..2797 | \n", - "Emoji_Presentation | \n", - "
256 | \n", - "27B0 | \n", - "Emoji_Presentation | \n", - "
257 | \n", - "27BF | \n", - "Emoji_Presentation | \n", - "
... | \n", - "... | \n", - "... | \n", - "
329 | \n", - "1F6F7..1F6F8 | \n", - "Emoji_Presentation | \n", - "
330 | \n", - "1F6F9 | \n", - "Emoji_Presentation | \n", - "
331 | \n", - "1F910..1F918 | \n", - "Emoji_Presentation | \n", - "
332 | \n", - "1F919..1F91E | \n", - "Emoji_Presentation | \n", - "
333 | \n", - "1F91F | \n", - "Emoji_Presentation | \n", - "
334 | \n", - "1F920..1F927 | \n", - "Emoji_Presentation | \n", - "
335 | \n", - "1F928..1F92F | \n", - "Emoji_Presentation | \n", - "
336 | \n", - "1F930 | \n", - "Emoji_Presentation | \n", - "
337 | \n", - "1F931..1F932 | \n", - "Emoji_Presentation | \n", - "
338 | \n", - "1F933..1F93A | \n", - "Emoji_Presentation | \n", - "
339 | \n", - "1F93C..1F93E | \n", - "Emoji_Presentation | \n", - "
340 | \n", - "1F940..1F945 | \n", - "Emoji_Presentation | \n", - "
341 | \n", - "1F947..1F94B | \n", - "Emoji_Presentation | \n", - "
342 | \n", - "1F94C | \n", - "Emoji_Presentation | \n", - "
343 | \n", - "1F94D..1F94F | \n", - "Emoji_Presentation | \n", - "
344 | \n", - "1F950..1F95E | \n", - "Emoji_Presentation | \n", - "
345 | \n", - "1F95F..1F96B | \n", - "Emoji_Presentation | \n", - "
346 | \n", - "1F96C..1F970 | \n", - "Emoji_Presentation | \n", - "
347 | \n", - "1F973..1F976 | \n", - "Emoji_Presentation | \n", - "
348 | \n", - "1F97A | \n", - "Emoji_Presentation | \n", - "
349 | \n", - "1F97C..1F97F | \n", - "Emoji_Presentation | \n", - "
350 | \n", - "1F980..1F984 | \n", - "Emoji_Presentation | \n", - "
351 | \n", - "1F985..1F991 | \n", - "Emoji_Presentation | \n", - "
352 | \n", - "1F992..1F997 | \n", - "Emoji_Presentation | \n", - "
353 | \n", - "1F998..1F9A2 | \n", - "Emoji_Presentation | \n", - "
354 | \n", - "1F9B0..1F9B9 | \n", - "Emoji_Presentation | \n", - "
355 | \n", - "1F9C0 | \n", - "Emoji_Presentation | \n", - "
356 | \n", - "1F9C1..1F9C2 | \n", - "Emoji_Presentation | \n", - "
357 | \n", - "1F9D0..1F9E6 | \n", - "Emoji_Presentation | \n", - "
358 | \n", - "1F9E7..1F9FF | \n", - "Emoji_Presentation | \n", - "
131 rows ร 2 columns
\n", - "\n", - " | date | \n", - "time | \n", - "person | \n", - "message | \n", - "emojis | \n", - "
---|---|---|---|---|---|
0 | \n", - "10/18/16 | \n", - "11:18 | \n", - "Lena Carta | \n", - "Hallo Jonas | \n", - "[๐] | \n", - "
1 | \n", - "10/18/16 | \n", - "11:21 | \n", - "Jonas Weinz | \n", - "Moin moin ;) Vllt. bin ich aber gar nicht Jona... | \n", - "[๐ค] | \n", - "
2 | \n", - "10/18/16 | \n", - "11:21 | \n", - "Lena Carta | \n", - "\n", - " | [๐ฑ, ๐ค] | \n", - "
3 | \n", - "10/18/16 | \n", - "11:21 | \n", - "Sonja Vorwerk | \n", - "\n", - " | [๐, ๐] | \n", - "
4 | \n", - "10/18/16 | \n", - "11:22 | \n", - "Caner Ucar | \n", - "\n", - " | [๐, ๐, ๐] | \n", - "
5 | \n", - "10/18/16 | \n", - "11:22 | \n", - "Patrick (Arithmeum) | \n", - "hallo jeff | \n", - "[] | \n", - "
6 | \n", - "10/18/16 | \n", - "11:22 | \n", - "Caner Ucar | \n", - "Patrick kein Handy am Empfang | \n", - "[] | \n", - "
7 | \n", - "10/18/16 | \n", - "11:26 | \n", - "Patrick (Arithmeum) | \n", - "halts maul und geh ma duschen | \n", - "[] | \n", - "
8 | \n", - "10/18/16 | \n", - "11:34 | \n", - "Simon (Arithmeum) | \n", - "Hab dich als Carsten abgespeichert, selber Schuld | \n", - "[] | \n", - "
9 | \n", - "10/18/16 | \n", - "11:36 | \n", - "Caner Ucar | \n", - "Patrick ich hab geduscht mit Kristina und Sonja v | \n", - "[] | \n", - "
10 | \n", - "10/18/16 | \n", - "11:36 | \n", - "Lena Carta | \n", - "รคhm.... | \n", - "[] | \n", - "
11 | \n", - "10/18/16 | \n", - "11:37 | \n", - "Jonathan (Arithmeum) | \n", - "Caner benutzt das Damen-Bad | \n", - "[] | \n", - "
12 | \n", - "10/18/16 | \n", - "11:37 | \n", - "Jonas Weinz | \n", - "Lรผg doch nicht, du tanzt die ganze Zeit aufm T... | \n", - "[] | \n", - "
13 | \n", - "10/18/16 | \n", - "11:37 | \n", - "Jonathan (Arithmeum) | \n", - "bรครคh | \n", - "[๐ฑ] | \n", - "
14 | \n", - "10/18/16 | \n", - "11:40 | \n", - "Patrick (Arithmeum) | \n", - "ja caner so ist das unter frauen..da geht man ... | \n", - "[] | \n", - "
15 | \n", - "10/18/16 | \n", - "12:02 | \n", - "Thomas Koppelberg | \n", - "Eeemmm was? | \n", - "[] | \n", - "
16 | \n", - "10/18/16 | \n", - "12:12 | \n", - "Kristina Stellwag | \n", - "Thomas, du wolltest gestern ja nicht | \n", - "[๐] | \n", - "
17 | \n", - "10/18/16 | \n", - "12:14 | \n", - "Thomas Koppelberg | \n", - "Ich wollte einiges, aber ich kann mich zurรผckh... | \n", - "[] | \n", - "
18 | \n", - "10/18/16 | \n", - "12:19 | \n", - "Simon (Arithmeum) | \n", - "Genau | \n", - "[๐] | \n", - "
19 | \n", - "10/18/16 | \n", - "13:36 | \n", - "Caner Ucar | \n", - "Sex | \n", - "[] | \n", - "
\n", - " | date | \n", - "time | \n", - "person | \n", - "message | \n", - "emojis | \n", - "
---|---|---|---|---|---|
0 | \n", - "10/18/16 | \n", - "11:18 | \n", - "Lena Carta | \n", - "Hallo Jonas | \n", - "[๐] | \n", - "
1 | \n", - "10/18/16 | \n", - "11:21 | \n", - "Jonas Weinz | \n", - "Moin moin ;) Vllt. bin ich aber gar nicht Jona... | \n", - "[๐ค] | \n", - "
13 | \n", - "10/18/16 | \n", - "11:37 | \n", - "Jonathan (Arithmeum) | \n", - "bรครคh | \n", - "[๐ฑ] | \n", - "
16 | \n", - "10/18/16 | \n", - "12:12 | \n", - "Kristina Stellwag | \n", - "Thomas, du wolltest gestern ja nicht | \n", - "[๐] | \n", - "
18 | \n", - "10/18/16 | \n", - "12:19 | \n", - "Simon (Arithmeum) | \n", - "Genau | \n", - "[๐] | \n", - "
29 | \n", - "10/18/16 | \n", - "18:38 | \n", - "Lena Carta | \n", - "was du bist morgen nicht da ??? | \n", - "[๐ฑ, ๐ฏ, ๐] | \n", - "
31 | \n", - "10/18/16 | \n", - "18:39 | \n", - "Lena Carta | \n", - "ich dachte diese Woche komplett noch. Aber gut... | \n", - "[๐] | \n", - "
32 | \n", - "10/18/16 | \n", - "18:40 | \n", - "Kristina Stellwag | \n", - "Nee das Semester hat doch angefangen | \n", - "[๐] | \n", - "
33 | \n", - "10/18/16 | \n", - "18:42 | \n", - "Lena Carta | \n", - "ja hatte ich gerade vergessen . Dabei hatte ic... | \n", - "[๐, ๐ถ] | \n", - "
41 | \n", - "10/20/16 | \n", - "12:50 | \n", - "Steffi (Arithmeum) | \n", - "Klar | \n", - "[๐น] | \n", - "
44 | \n", - "10/20/16 | \n", - "17:54 | \n", - "Steffi (Arithmeum) | \n", - "Mein Zug lรคsst sich auch heute Zeit | \n", - "[๐] | \n", - "
45 | \n", - "10/20/16 | \n", - "18:08 | \n", - "Steffi (Arithmeum) | \n", - "Wir fangen doch wahrscheinlich nicht vor halb ... | \n", - "[๐ณ] | \n", - "
51 | \n", - "10/20/16 | \n", - "20:58 | \n", - "Anna Borutzky | \n", - "Ist das dein Ernst? | \n", - "[๐] | \n", - "
52 | \n", - "10/20/16 | \n", - "20:58 | \n", - "Patrick (Arithmeum) | \n", - "Habs voll vercheckt sry ..gerade erst gemerkt | \n", - "[๐] | \n", - "
70 | \n", - "10/20/16 | \n", - "22:59 | \n", - "Jonathan (Arithmeum) | \n", - "Ich bitte darum Caner.... | \n", - "[๐, ๐, ๐] | \n", - "
78 | \n", - "10/25/16 | \n", - "01:03 | \n", - "Caner Ucar | \n", - "Haaaaaalloooo | \n", - "[๐ค, ๐ค, ๐ค, ๐ค, ๐ค, ๐ค, ๐ค, ๐, ๐ค, ๐ค, ๐] | \n", - "
79 | \n", - "10/25/16 | \n", - "01:04 | \n", - "Michael (Arithmeum) | \n", - "Keine sorge, das hat bei dir nichts mit der St... | \n", - "[๐] | \n", - "
88 | \n", - "10/25/16 | \n", - "09:02 | \n", - "Lena Carta | \n", - "ich wollte eigentlich schon da sein, aber ich ... | \n", - "[๐] | \n", - "
89 | \n", - "10/25/16 | \n", - "09:04 | \n", - "Jonathan (Arithmeum) | \n", - "SIIIIEG...โ | \n", - "[๐] | \n", - "
90 | \n", - "10/25/16 | \n", - "10:00 | \n", - "Lena Carta | \n", - "besser spรคt als nie. ich bin immerhin auf dem ... | \n", - "[๐] | \n", - "
93 | \n", - "10/25/16 | \n", - "21:49 | \n", - "Jonathan (Arithmeum) | \n", - "Ich nicht | \n", - "[๐] | \n", - "
94 | \n", - "10/25/16 | \n", - "21:50 | \n", - "Lena Carta | \n", - "ich auch nicht | \n", - "[๐ณ] | \n", - "
95 | \n", - "10/25/16 | \n", - "22:13 | \n", - "Konstantin (Arithmeum) | \n", - "Wer hat den zuletzt was laminiert? lena und i... | \n", - "[๐ค] | \n", - "
96 | \n", - "10/25/16 | \n", - "23:28 | \n", - "Caner Ucar | \n", - "Ich auch nicht | \n", - "[๐ค] | \n", - "
102 | \n", - "10/27/16 | \n", - "14:43 | \n", - "Sonja Vorwerk | \n", - "hm mรผsste das am besten heute schon wissen...w... | \n", - "[๐, ๐] | \n", - "
115 | \n", - "10/28/16 | \n", - "08:32 | \n", - "Lena Carta | \n", - "Guten Morgen liebe Kollegen, kรถnnte einer von ... | \n", - "[๐] | \n", - "
116 | \n", - "10/28/16 | \n", - "09:48 | \n", - "Lena Carta | \n", - "Ist noch niemand im Bรผro? | \n", - "[๐] | \n", - "
117 | \n", - "10/28/16 | \n", - "09:50 | \n", - "Caner Ucar | \n", - "10:10 ca. | \n", - "[๐] | \n", - "
118 | \n", - "10/28/16 | \n", - "09:51 | \n", - "Caner Ucar | \n", - "Wann hat das woki geรถffnet | \n", - "[๐] | \n", - "
121 | \n", - "10/28/16 | \n", - "10:54 | \n", - "Lena Carta | \n", - "Da hรคtte ich jetzt auch nicht gesucht | \n", - "[๐] | \n", - "
... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "
8663 | \n", - "5/9/18 | \n", - "17:42 | \n", - "Jonas Weinz | \n", - "mehrere Bรผrostรผhle hintereinander? | \n", - "[๐ค] | \n", - "
8665 | \n", - "5/9/18 | \n", - "17:43 | \n", - "Lena Carta | \n", - "Wollte Kristina das nicht immer schonmal machen | \n", - "[๐] | \n", - "
8675 | \n", - "5/10/18 | \n", - "14:06 | \n", - "Lena Klรถckner | \n", - "Erledigt | \n", - "[๐] | \n", - "
8676 | \n", - "5/10/18 | \n", - "14:07 | \n", - "Caner Ucar | \n", - "Danke | \n", - "[๐] | \n", - "
8677 | \n", - "5/10/18 | \n", - "14:23 | \n", - "Anna Zens | \n", - "Ich hatte es auch schon erledigt | \n", - "[๐] | \n", - "
8678 | \n", - "5/11/18 | \n", - "08:16 | \n", - "Lena Carta | \n", - "Gute morgen, ich habe gesehen neben dem Buch l... | \n", - "[๐] | \n", - "
8679 | \n", - "5/11/18 | \n", - "08:25 | \n", - "Anna Zens | \n", - "Die handschriftlichen sind die, von denen kein... | \n", - "[๐] | \n", - "
8680 | \n", - "5/11/18 | \n", - "08:26 | \n", - "Lena Carta | \n", - "achso ich denke mal dann wird sich Ingo melden | \n", - "[๐, ๐] | \n", - "
8681 | \n", - "5/11/18 | \n", - "13:18 | \n", - "Freya (Arithmeum) | \n", - "Mein Kalender funktioniert nicht - kรถnnte mir ... | \n", - "[๐ค] | \n", - "
8682 | \n", - "5/12/18 | \n", - "14:53 | \n", - "Freya (Arithmeum) | \n", - "Kรถnnte jemand fรผr Montag Abend zwei Karten fรผr... | \n", - "[๐] | \n", - "
8683 | \n", - "5/12/18 | \n", - "15:05 | \n", - "Anna Borutzky | \n", - "Und eine Freikarte fรผr Sonja bitte! | \n", - "[๐] | \n", - "
8689 | \n", - "5/12/18 | \n", - "15:16 | \n", - "Lena Carta | \n", - "Danke Wieso kommen solche Fragen immer am Woc... | \n", - "[๐] | \n", - "
8692 | \n", - "5/12/18 | \n", - "15:17 | \n", - "Anna Borutzky | \n", - "Murphyโs Gesetz? | \n", - "[๐] | \n", - "
8693 | \n", - "5/12/18 | \n", - "15:17 | \n", - "Caner Ucar | \n", - "Cool | \n", - "[๐] | \n", - "
8695 | \n", - "5/12/18 | \n", - "15:23 | \n", - "Jonas Weinz | \n", - "...und die kommt auf Annas Tisch | \n", - "[๐] | \n", - "
8696 | \n", - "5/12/18 | \n", - "15:23 | \n", - "Freya (Arithmeum) | \n", - "Vielen, vielen Dank โบ Sowas passiert immer am ... | \n", - "[๐] | \n", - "
8697 | \n", - "5/12/18 | \n", - "15:23 | \n", - "Lena Carta | \n", - "Das war nicht auf dich bezogen . | \n", - "[๐] | \n", - "
8698 | \n", - "5/12/18 | \n", - "15:24 | \n", - "Freya (Arithmeum) | \n", - "Na gut | \n", - "[๐] | \n", - "
8699 | \n", - "5/12/18 | \n", - "15:24 | \n", - "Lena Carta | \n", - "Eigentlich ist es halbwegs entspannt heute Ic... | \n", - "[๐, ๐] | \n", - "
8700 | \n", - "5/12/18 | \n", - "15:25 | \n", - "Freya (Arithmeum) | \n", - "Es gibt keine doofen Fragen | \n", - "[๐] | \n", - "
8702 | \n", - "5/12/18 | \n", - "15:25 | \n", - "Lena Carta | \n", - "https://www.youtube.com/watch?v=uPHi5xn_q5c | \n", - "[๐] | \n", - "
8708 | \n", - "5/12/18 | \n", - "17:56 | \n", - "Freya (Arithmeum) | \n", - "Ich mรถchte arbeiten und habe mega Bock drauf! ... | \n", - "[๐] | \n", - "
8719 | \n", - "5/12/18 | \n", - "20:09 | \n", - "Lena Carta | \n", - "bin leider verabredet .... mit Thilo | \n", - "[๐ฌ, ๐ค] | \n", - "
8725 | \n", - "5/13/18 | \n", - "17:24 | \n", - "Thomas Koppelberg | \n", - "โฅ | \n", - "[๐] | \n", - "
8726 | \n", - "5/14/18 | \n", - "17:00 | \n", - "Sonja Schรคfer | \n", - "Kann mir jemand noch eine zweite Freikarte res... | \n", - "[๐] | \n", - "
8739 | \n", - "5/14/18 | \n", - "22:40 | \n", - "Jonas Weinz | \n", - "Hab Ingo beim vorbeilaufenden nicht gesehen, h... | \n", - "[๐] | \n", - "
8744 | \n", - "5/15/18 | \n", - "17:16 | \n", - "Caner Ucar | \n", - "โโ | \n", - "[๐คท] | \n", - "
8755 | \n", - "5/17/18 | \n", - "10:43 | \n", - "Lena Carta | \n", - "super perfekt dann ist beiden geholfen | \n", - "[๐, ๐] | \n", - "
8759 | \n", - "5/17/18 | \n", - "10:43 | \n", - "Lena Carta | \n", - "ob das so sinnvoll ist? | \n", - "[๐] | \n", - "
8763 | \n", - "5/17/18 | \n", - "10:45 | \n", - "Lena Carta | \n", - "ich dachte es ging konkret um den Termin | \n", - "[๐] | \n", - "
2455 rows ร 5 columns
\n", - "\n", - " | message | \n", - "pred | \n", - "trained | \n", - "emojis | \n", - "
---|---|---|---|---|
8663 | \n", - "mehrere Bรผrostรผhle hintereinander? | \n", - "๐ | \n", - "๐ค | \n", - "[๐ค] | \n", - "
1862 | \n", - "Ich will auch Essen | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
3921 | \n", - "2x orange | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
2222 | \n", - "Man soll auch keine Lernsachen da lassen | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
761 | \n", - "Wir kรถnnen auch gerne wieder bei mir zusammen ... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
3600 | \n", - "Hab den Bus verpasst, den ich eigentlich nehme... | \n", - "๐ | \n", - "๐ธ | \n", - "[๐ธ] | \n", - "
1794 | \n", - "Klaro, gerne | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
861 | \n", - "Sehr gut, Jan! Wenn sich noch jemand melden wรผ... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
1469 | \n", - "Jaaa aber mein Mitbewohner ist messy | \n", - "๐ฌ | \n", - "๐ | \n", - "[๐ฑ, ๐, ๐, ๐] | \n", - "
6254 | \n", - "Hallรถchen Es hat ein Herr angerufen, der gern... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
7968 | \n", - "Iwo | \n", - "๐คฆ | \n", - "๐ | \n", - "[๐] | \n", - "
8102 | \n", - "Keine Ahnung wer da haariger ist | \n", - "๐ | \n", - "๐ง | \n", - "[๐ง] | \n", - "
6835 | \n", - "Danke | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
7135 | \n", - "Wurde bestimmt von Big Bang geklaut | \n", - "๐คท | \n", - "๐ | \n", - "[๐, ๐, ๐] | \n", - "
4556 | \n", - "Ich kann leider nicht, aber arbeiten da nicht ... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
6705 | \n", - "Ist von heute, aber halt 3x in englisch | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
2058 | \n", - ".. | \n", - "๐คฆ | \n", - "๐ | \n", - "[๐ ] | \n", - "
2072 | \n", - "Oder fang endlich mal wieder an, was fรผrs Stud... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
756 | \n", - "Ich hab vom letzten Jahr noch ein Trauma | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
5966 | \n", - "Ist Freitag schon Wochenende? | \n", - "๐ | \n", - "๐ค | \n", - "[๐ค] | \n", - "
7007 | \n", - "Wenn wir die Klimaanlage im Museum ausschalten... | \n", - "๐ค | \n", - "๐คช | \n", - "[๐คช] | \n", - "
6968 | \n", - "Ein Vorbild fรผr uns alle | \n", - "๐ค | \n", - "๐คฉ | \n", - "[๐คฉ] | \n", - "
5665 | \n", - "Kein Problem. Du kannst mich eintragen. | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
2641 | \n", - "Jonas, du bist gelb markiert! Du kannst keine ... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
1981 | \n", - "Da bin ich mir sehr sicher! | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
3334 | \n", - "Das wรคre auf jeden Fall hilfreich! Danke | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
4447 | \n", - "Ist das Schild denn auch laminiert?! | \n", - "๐ค | \n", - "๐ | \n", - "[๐] | \n", - "
288 | \n", - "da bin ich mal gespannt wie das aussieht, wen... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
4265 | \n", - "Aber es ist doch gebrochen... | \n", - "๐ค | \n", - "๐ข | \n", - "[๐ข] | \n", - "
7405 | \n", - "Partey | \n", - "๐คฆ | \n", - "๐คช | \n", - "[๐คช] | \n", - "
... | \n", - "... | \n", - "... | \n", - "... | \n", - "... | \n", - "
4910 | \n", - "Vllt gilt das Schild auch nur fรผr schwarze Hun... | \n", - "๐ | \n", - "๐ฑ | \n", - "[๐ฑ] | \n", - "
2047 | \n", - "Ich erprobe mich morgen mit Freya an Addieren ... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
2650 | \n", - "Ich kann leider nicht | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
299 | \n", - "Das schafft meine Handykamera aber nicht | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
2499 | \n", - "also ihr lieben ich arbeite gerade im arithmeu... | \n", - "๐ | \n", - "๐ | \n", - "[๐ ] | \n", - "
4783 | \n", - "danke | \n", - "๐ | \n", - "๐ธ | \n", - "[๐ธ, ๐ธ, ๐ธ] | \n", - "
4040 | \n", - "Herrlich | \n", - "๐คฆ | \n", - "๐ | \n", - "[๐ค, ๐ ] | \n", - "
7553 | \n", - "babbage, meine Autokerrektur โโ | \n", - "๐ค | \n", - "๐คฆ | \n", - "[๐คฆ] | \n", - "
6232 | \n", - "Bin erst um 9.15Uhr da..... | \n", - "๐ | \n", - "๐ช | \n", - "[๐ฃ, ๐ช] | \n", - "
3514 | \n", - "Dankeschรถn! Dann trage ich dich ein | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
3422 | \n", - "Schnitzel | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
2294 | \n", - "Club discreto? | \n", - "๐ | \n", - "๐ณ | \n", - "[๐ณ, ๐ณ, ๐ณ] | \n", - "
8218 | \n", - "auch da bin ich etwas neidisch | \n", - "๐ | \n", - "๐ | \n", - "[๐ ] | \n", - "
4463 | \n", - "Mรถchte jemand was vom Cafรฉ Roller? | \n", - "๐คง | \n", - "๐ | \n", - "[๐] | \n", - "
8032 | \n", - "Frohe Ostern an Euch alle... | \n", - "๐ | \n", - "๐ฅ | \n", - "[๐ฐ, ๐ฃ, ๐ฅ] | \n", - "
4505 | \n", - "okay, ihr geht eigentlich ganz verantwortungsv... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
4810 | \n", - "Meine Meinung: Wenn das Personal da ist, dann ... | \n", - "๐ | \n", - "๐คท | \n", - "[๐คท] | \n", - "
5762 | \n", - "Ein shk ist aber billiger | \n", - "๐ต | \n", - "๐ | \n", - "[๐] | \n", - "
4247 | \n", - "Alle die morgen auf der Arbeit sind: nachher k... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
2501 | \n", - "ich glaube das wรคre eine stilvolle und romanti... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
5278 | \n", - "Ich kann das machen | \n", - "๐ | \n", - "โ | \n", - "[โ] | \n", - "
5747 | \n", - "In der Kรผche im Kรผhlschrank steht eine grรผne T... | \n", - "๐ | \n", - "๐ | \n", - "[๐, ๐] | \n", - "
7022 | \n", - "Dann halt nicht โโ | \n", - "๐คท | \n", - "๐คท | \n", - "[๐คท] | \n", - "
1736 | \n", - "Ich hab absolut keine Ahnung davon | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
5909 | \n", - "Wir bekommen es bestimmt zu zweit hin, aber we... | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
5890 | \n", - "Pass bloร auf, wenn du die isst mutierst du be... | \n", - "๐ | \n", - "๐ฑ | \n", - "[๐ฑ] | \n", - "
566 | \n", - "Das sind 5 Maร pro Abend | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
6044 | \n", - "Sind sehr lecker | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
1472 | \n", - "Ich werde die alle drillen das sage ich dir, a... | \n", - "๐ค | \n", - "๐ | \n", - "[๐] | \n", - "
5702 | \n", - "Oh man, das wird ein Tag | \n", - "๐ | \n", - "๐ | \n", - "[๐] | \n", - "
246 rows ร 4 columns
\n", - "Failed to display Jupyter Widget of type Text
.
\n", - " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", - " that the widgets JavaScript is still loading. If this message persists, it\n", - " likely means that the widgets JavaScript library is either not installed or\n", - " not enabled. See the Jupyter\n", - " Widgets Documentation for setup instructions.\n", - "
\n", - "\n", - " If you're reading this message in another frontend (for example, a static\n", - " rendering on GitHub or NBViewer),\n", - " it may mean that your frontend doesn't currently support widgets.\n", - "
\n" - ], - "text/plain": [ - "Text(value='')" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "f1d5e13f70a24e80acc95372e3f3db0d", - "version_major": 2, - "version_minor": 0 - }, - "text/html": [ - "Failed to display Jupyter Widget of type VBox
.
\n", - " If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n", - " that the widgets JavaScript is still loading. If this message persists, it\n", - " likely means that the widgets JavaScript library is either not installed or\n", - " not enabled. See the Jupyter\n", - " Widgets Documentation for setup instructions.\n", - "
\n", - "\n", - " If you're reading this message in another frontend (for example, a static\n", - " rendering on GitHub or NBViewer),\n", - " it may mean that your frontend doesn't currently support widgets.\n", - "
\n" - ], - "text/plain": [ - "VBox(children=(Button(description='get smiley', icon='check', style=ButtonStyle(), tooltip='Click me'), Output()))" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ - "import ipywidgets as widgets \n", "\n", "out = widgets.Output()\n", "\n", @@ -2695,7 +463,7 @@ " with out:\n", " clear_output()\n", " with out:\n", - " display(Markdown(\"# \" + str(clf_a.predict(vectorizer.transform([t.value]))[0])))\n", + " display(Markdown(\"# \" + str(mlb.inverse_transform(clf_a.predict(vectorizer.transform([t.value])))[0])))\n", "\n", "b.on_click(handle_submit)\n", " \n", diff --git a/Project/Tools/whatsapp2csv.sh b/Project/Tools/whatsapp2csv.sh index ad59d5d..178f170 100755 --- a/Project/Tools/whatsapp2csv.sh +++ b/Project/Tools/whatsapp2csv.sh @@ -77,7 +77,7 @@ perform_and_exit echo -e "date\ttime\tperson\tmessage" > "$OUTPUT" # 3. replace separators of whatsapp's txt-format with '\t' as separator for csv # 4. delete all double-quotes. Because people are too stupid to type them in pairs and that breaks some csv-interpreters ๐คฆโโ -perform_and_exit sed ':a;N;/\n[0-9]\{1,\}\+\//!s/\n/ /;ta;P;D' "$INPUT" | grep -v -E 'left|added|created|end-to-end|Media omitted' | sed 's/, /\t/1; s/- /\t/1; s/: /\t/1;' | tr -d '"' >> "$OUTPUT" +perform_and_exit sed ':a;N;/\n[0-9]\{1,\}\+\//!s/\n/ /;ta;P;D' "$INPUT" | grep -v -E 'left|added|created|end-to-end|Media omitted|import java|