Upload sd_token_similarity_calculator.ipynb
Browse files
sd_token_similarity_calculator.ipynb
CHANGED
@@ -155,29 +155,10 @@
|
|
155 |
],
|
156 |
"metadata": {
|
157 |
"id": "Ch9puvwKH1s3",
|
158 |
-
"collapsed": true
|
159 |
-
"outputId": "129b355e-9a4f-49d1-b641-3b675558f9b2",
|
160 |
-
"colab": {
|
161 |
-
"base_uri": "https://localhost:8080/"
|
162 |
-
}
|
163 |
},
|
164 |
-
"execution_count":
|
165 |
-
"outputs": [
|
166 |
-
{
|
167 |
-
"output_type": "stream",
|
168 |
-
"name": "stdout",
|
169 |
-
"text": [
|
170 |
-
"Cloning into 'sd_tokens'...\n",
|
171 |
-
"remote: Enumerating objects: 99, done.\u001b[K\n",
|
172 |
-
"remote: Counting objects: 100% (96/96), done.\u001b[K\n",
|
173 |
-
"remote: Compressing objects: 100% (96/96), done.\u001b[K\n",
|
174 |
-
"remote: Total 99 (delta 34), reused 0 (delta 0), pack-reused 3 (from 1)\u001b[K\n",
|
175 |
-
"Unpacking objects: 100% (99/99), 1.35 MiB | 3.12 MiB/s, done.\n",
|
176 |
-
"Filtering content: 100% (22/22), 2.47 GiB | 39.37 MiB/s, done.\n",
|
177 |
-
"/content/sd_tokens\n"
|
178 |
-
]
|
179 |
-
}
|
180 |
-
]
|
181 |
},
|
182 |
{
|
183 |
"cell_type": "code",
|
@@ -422,7 +403,7 @@
|
|
422 |
" name = ahead + get_suffix(id) + behind\n",
|
423 |
" if(get_suffix(id) == ' '): name = ahead + f'{id}' + behind\n",
|
424 |
" _suffixes = _suffixes + name + '|'\n",
|
425 |
-
" _sims = _sims + f'{round(sim,2)} %' + '|'\n",
|
426 |
"#------#\n",
|
427 |
"_suffixes = (_suffixes + '}').replace('|}', '}')\n",
|
428 |
"_sims = (_sims + '}').replace('|}', '}')\n",
|
@@ -525,7 +506,7 @@
|
|
525 |
],
|
526 |
"metadata": {
|
527 |
"id": "ke6mZ1RZDOeB",
|
528 |
-
"outputId": "
|
529 |
"colab": {
|
530 |
"base_uri": "https://localhost:8080/",
|
531 |
"height": 1000
|
|
|
155 |
],
|
156 |
"metadata": {
|
157 |
"id": "Ch9puvwKH1s3",
|
158 |
+
"collapsed": true
|
|
|
|
|
|
|
|
|
159 |
},
|
160 |
+
"execution_count": null,
|
161 |
+
"outputs": []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
},
|
163 |
{
|
164 |
"cell_type": "code",
|
|
|
403 |
" name = ahead + get_suffix(id) + behind\n",
|
404 |
" if(get_suffix(id) == ' '): name = ahead + f'{id}' + behind\n",
|
405 |
" _suffixes = _suffixes + name + '|'\n",
|
406 |
+
" _sims = _sims + f'{round(sim*100,2)} %' + '|'\n",
|
407 |
"#------#\n",
|
408 |
"_suffixes = (_suffixes + '}').replace('|}', '}')\n",
|
409 |
"_sims = (_sims + '}').replace('|}', '}')\n",
|
|
|
506 |
],
|
507 |
"metadata": {
|
508 |
"id": "ke6mZ1RZDOeB",
|
509 |
+
"outputId": "047a37dd-ad8e-42af-ca6d-d4e7becd8adb",
|
510 |
"colab": {
|
511 |
"base_uri": "https://localhost:8080/",
|
512 |
"height": 1000
|