ksvmuralidhar
commited on
Commit
•
f2f1bf9
1
Parent(s):
d35aa2a
Update insert_into_db_sent_tran.ipynb
Browse files
insert_into_db_sent_tran.ipynb
CHANGED
@@ -234,7 +234,7 @@
|
|
234 |
" sentence transformers to extract sentence embeddings\n",
|
235 |
" '''\n",
|
236 |
" def vectorize(self, x):\n",
|
237 |
-
" sent_model = SentenceTransformer('
|
238 |
" sen_embeddings = sent_model.encode(x)\n",
|
239 |
" return sen_embeddings"
|
240 |
]
|
|
|
234 |
" sentence transformers to extract sentence embeddings\n",
|
235 |
" '''\n",
|
236 |
" def vectorize(self, x):\n",
|
237 |
+
" sent_model = SentenceTransformer('all-mpnet-base-v2')\n",
|
238 |
" sen_embeddings = sent_model.encode(x)\n",
|
239 |
" return sen_embeddings"
|
240 |
]
|