" <td>Hancock Men Blue Regular Fit Striped Formal Sh...</td>\n",
" <td>Hancock Men Blue Regular Fit Striped Formal Sh...</td>\n",
" <td>formal-shirts</td>\n",
" <td>formal-shirts</td>\n",
" <td>Hancock Men Blue Regular Fit Striped Formal Shirt</td>\n",
" <td>Hancock Men Blue Regular Fit Striped Formal Shirt</td>\n",
...
@@ -580,16 +580,7 @@
...
@@ -580,16 +580,7 @@
"cell_type": "code",
"cell_type": "code",
"execution_count": 10,
"execution_count": 10,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [],
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\Agusti Frananda\\Anaconda3\\lib\\site-packages\\sklearn\\feature_extraction\\text.py:17: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working\n",
" from collections import Mapping, defaultdict\n"
]
}
],
"source": [
"source": [
"from nltk import WordPunctTokenizer"
"from nltk import WordPunctTokenizer"
]
]
...
@@ -868,97 +859,7 @@
...
@@ -868,97 +859,7 @@
"name": "stdout",
"name": "stdout",
"output_type": "stream",
"output_type": "stream",
"text": [
"text": [
"men jacket\n",
"Men Suits: Formal Suits\n",
"\n",
"Dare by Voylla Blue Geometric Cufflinks \t 0.34836649894714355\n",
"\n",
"Pacific Gold Men Leather Black Accessory Gift Set \t 0.34836649894714355\n",
"\n",
"Tommy Hilfiger Men Black & Brown Solid Reversible Leather Belt \t 0.34836649894714355\n",
"\n",
"The Tie Hub Maroon & Blue Checked Skinny Tie \t 0.34836649894714355\n",
"\n",
"YouBella Silver-Toned Stone-Studded Couple Ring Set \t 0.34836649894714355\n",
"\n"
]
}
],
"source": [
"search(index_bow, \"men jacket\", prints=True)"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Arrow men\n",
"\n",
"Kara Men Black Solid Two Fold Wallet \t 0.40269362926483154\n",
"\n",
"HRX by Hrithik Roshan Men White Solid Baseball Cap \t 0.40269362926483154\n",
"\n",
"CHRISTOPOLO Men Black & Brown Textured Leather Reversible Belt \t 0.39562827348709106\n",
"\n",
"ZIDO Grey Solid Bow Tie \t 0.38892221450805664\n",
"\n",
"Nike Unisex Blue NK GK MATCH-FA18 Match Goalkeeper Football Gloves \t 0.38892221450805664\n",
"\n"
]
}
],
"source": [
"search(index_bow, \"Arrow men\", prints=True)"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Jacket for Girls\n",
"\n",
"Tommy Hilfiger Men Black Solid Belt \t 0.2223747968673706\n",
"\n",
"Dare by Voylla Blue Geometric Cufflinks \t 0.20901989936828613\n",
"\n",
"Pacific Gold Men Leather Black Accessory Gift Set \t 0.20901989936828613\n",
"\n",
"Tommy Hilfiger Men Black & Brown Solid Reversible Leather Belt \t 0.20901989936828613\n",
"\n",
"The Tie Hub Maroon & Blue Checked Skinny Tie \t 0.20901989936828613\n",
"\n"
]
}
],
"source": [
"search(index_bow, \"Jacket for Girls\", prints=True)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Sistem telah selesai dibangun. Kita coba apakah sistem dapat melakukan pencarian dengan tanda baca."
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Men Suits: Formal Suits\n",
"Men Suits: Formal Suits\n",
"\n",
"\n",
"Lino Perros Men Red & Blue Accessory Gift Set \t 0.3818812966346741\n",
"Lino Perros Men Red & Blue Accessory Gift Set \t 0.3818812966346741\n",