@ -10,18 +10,34 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: gensim in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (4.3.0)\n",
"Requirement already satisfied: gensim in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (4.3.0)"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"[notice] A new release of pip is available: 23.0.1 -> 24.0\n",
"[notice] To update, run: python.exe -m pip install --upgrade pip\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Requirement already satisfied: scipy>=1.7.0 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from gensim) (1.10.0)\n",
"Requirement already satisfied: numpy>=1.18.5 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from gensim) (1.23.3)\n",
"Requirement already satisfied: FuzzyTM>=0.4.0 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from gensim) (2.0.5)\n",
"Requirement already satisfied: Cython==0.29.32 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from gensim) (0.29.32)\n",
"Requirement already satisfied: smart-open>=1.8.1 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from gensim) (6.3.0)\n",
"Requirement already satisfied: scipy>=1.7.0 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from gensim) (1.10.0)\n",
"Requirement already satisfied: Cython==0.29.32 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from gensim) (0.29.32)\n",
"Requirement already satisfied: FuzzyTM>=0.4.0 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from gensim) (2.0.5)\n",
"Requirement already satisfied: pyfume in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from FuzzyTM>=0.4.0->gensim) (0.2.25)\n",
"Requirement already satisfied: pandas in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from FuzzyTM>=0.4.0->gensim) (1.5.3)\n",
"Requirement already satisfied: python-dateutil>=2.8.1 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from pandas->FuzzyTM>=0.4.0->gensim) (2.8.2)\n",
"Requirement already satisfied: pytz>=2020.1 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from pandas->FuzzyTM>=0.4.0->gensim) (2022.7.1)\n",
"Requirement already satisfied: simpful in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from pyfume->FuzzyTM>=0.4.0->gensim) (2.10.0)\n",
"Requirement already satisfied: fst-pso in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from pyfume->FuzzyTM>=0.4.0->gensim) (1.8.1)\n",
"Requirement already satisfied: simpful in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from pyfume->FuzzyTM>=0.4.0->gensim) (2.10.0)\n",
"Requirement already satisfied: six>=1.5 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from python-dateutil>=2.8.1->pandas->FuzzyTM>=0.4.0->gensim) (1.16.0)\n",
"Requirement already satisfied: miniful in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from fst-pso->pyfume->FuzzyTM>=0.4.0->gensim) (0.0.6)\n",
"Requirement already satisfied: requests in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from simpful->pyfume->FuzzyTM>=0.4.0->gensim) (2.28.1)\n",
@ -30,15 +46,6 @@
"Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from requests->simpful->pyfume->FuzzyTM>=0.4.0->gensim) (2022.9.14)\n",
"Requirement already satisfied: charset-normalizer<3,>=2 in c:\\users\\андрей\\appdata\\local\\programs\\python\\python39\\lib\\site-packages (from requests->simpful->pyfume->FuzzyTM>=0.4.0->gensim) (2.1.1)\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"[notice] A new release of pip available: 22.2.2 -> 23.0.1\n",
"[notice] To update, run: python.exe -m pip install --upgrade pip\n"
]
}
],
"source": [
@ -57,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 6 ,
"execution_count": 3 ,
"id": "527c1b9a",
"metadata": {},
"outputs": [
@ -84,7 +91,7 @@
},
{
"cell_type": "code",
"execution_count": 7 ,
"execution_count": 4 ,
"id": "6f539977",
"metadata": {},
"outputs": [],
@ -94,7 +101,7 @@
},
{
"cell_type": "code",
"execution_count": 8 ,
"execution_count": 5 ,
"id": "ca0e6543",
"metadata": {},
"outputs": [
@ -113,7 +120,7 @@
" 'самый_DET']"
]
},
"execution_count": 8 ,
"execution_count": 5 ,
"metadata": {},
"output_type": "execute_result"
}
@ -124,37 +131,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"id": "b7840d1e",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[('кошка_NOUN', 0.7570087909698486),\n",
" ('котенок_NOUN', 0.6676193475723267),\n",
" ('пес_NOUN', 0.5633267164230347),\n",
" ('мяукать_VERB', 0.561974287033081),\n",
" ('тобик_NOUN', 0.5586473941802979),\n",
" ('фоксик_NOUN', 0.5572988986968994),\n",
" ('собака_NOUN', 0.5567899942398071),\n",
" ('мяучать_VERB', 0.5535756349563599),\n",
" ('харлашка_NOUN', 0.551755428314209),\n",
" ('котяра_NOUN', 0.5508568286895752)]"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"w2v_vectors.most_similar('кот_NOUN')"
]
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 6,
"id": "de05204a",
"metadata": {},
"outputs": [
@ -239,7 +216,7 @@
" dtype=float32)"
]
},
"execution_count": 13 ,
"execution_count": 6 ,
"metadata": {},
"output_type": "execute_result"
}
@ -248,6 +225,36 @@
"w2v_vectors['кот_NOUN']"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "b7840d1e",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[('кошка_NOUN', 0.7570087909698486),\n",
" ('котенок_NOUN', 0.6676193475723267),\n",
" ('пес_NOUN', 0.5633267164230347),\n",
" ('мяукать_VERB', 0.561974287033081),\n",
" ('тобик_NOUN', 0.5586473941802979),\n",
" ('фоксик_NOUN', 0.5572988986968994),\n",
" ('собака_NOUN', 0.5567899942398071),\n",
" ('мяучать_VERB', 0.5535756349563599),\n",
" ('харлашка_NOUN', 0.551755428314209),\n",
" ('котяра_NOUN', 0.5508568286895752)]"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"w2v_vectors.most_similar('кот_NOUN')"
]
},
{
"cell_type": "markdown",
"id": "3f93b5f6",
@ -258,7 +265,7 @@
},
{
"cell_type": "code",
"execution_count": 1 8,
"execution_count": 8,
"id": "be870586",
"metadata": {},
"outputs": [],
@ -268,7 +275,7 @@
},
{
"cell_type": "code",
"execution_count": 1 9,
"execution_count": 9,
"id": "599d6406",
"metadata": {},
"outputs": [
@ -297,7 +304,7 @@
" ('lady', 0.8845519423484802)]"
]
},
"execution_count": 1 9,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
@ -309,7 +316,7 @@
},
{
"cell_type": "code",
"execution_count": 24 ,
"execution_count": 10 ,
"id": "2db71cfb",
"metadata": {},
"outputs": [
@ -319,7 +326,7 @@
"0.60927683"
]
},
"execution_count": 24 ,
"execution_count": 10 ,
"metadata": {},
"output_type": "execute_result"
}