From 54679b91f1e159013f69a3a66f759deec717546c Mon Sep 17 00:00:00 2001 From: Hiroki Nomoto <34984352+matbahasa@users.noreply.github.com> Date: Wed, 5 May 2021 13:11:45 +0900 Subject: [PATCH] Add files via upload --- contoh_penggunaan.ipynb | 39 ++++++--------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/contoh_penggunaan.ipynb b/contoh_penggunaan.ipynb index 557b566..0731a73 100644 --- a/contoh_penggunaan.ipynb +++ b/contoh_penggunaan.ipynb @@ -214,7 +214,7 @@ " try:\n", " return kamus[w][:n]\n", " except:\n", - " return ma.morph(w, rootlist, Indo, n)" + " return list(ma.morph(w, rootlist, Indo, n))" ] }, { @@ -304,11 +304,11 @@ { "data": { "text/plain": [ - "{('epob', 'mengepobkan', 'meN-', '-kan', '0', '0'),\n", + "[('kepob', 'mengepobkan', 'meN-', '-kan', '0', '0'),\n", " ('epobk', 'mengepobkan', 'meN-', '-an', '0', '0'),\n", - " ('kepob', 'mengepobkan', 'meN-', '-kan', '0', '0'),\n", + " ('epob', 'mengepobkan', 'meN-', '-kan', '0', '0'),\n", " ('kepobk', 'mengepobkan', 'meN-', '-an', '0', '0'),\n", - " ('ngepob', 'mengepobkan', 'meN-', '-kan', '0', '0')}" + " ('pobkan', 'mengepobkan', 'ke-+meN-', '0', '0', '0')]" ] }, "execution_count": 12, @@ -328,9 +328,9 @@ { "data": { "text/plain": [ - "{('epob', 'mengepobkan', 'meN-', '-kan', '0', '0'),\n", + "[('kepob', 'mengepobkan', 'meN-', '-kan', '0', '0'),\n", " ('epobk', 'mengepobkan', 'meN-', '-an', '0', '0'),\n", - " ('kepob', 'mengepobkan', 'meN-', '-kan', '0', '0')}" + " ('epob', 'mengepobkan', 'meN-', '-kan', '0', '0')]" ] }, "execution_count": 13, @@ -341,33 +341,6 @@ "source": [ "analisis(\"mengepobkan\", n=3)" ] - }, - { - "cell_type": "code", - "execution_count": 28, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "{('kawan2', 'kawan2nya', '0', '-nya', '0', '0')}" - ] - }, - "execution_count": 28, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "analisis(\"kawan2nya\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {