Sentence Similarity
sentence-transformers
PyTorch
roberta
feature-extraction
text-embeddings-inference
Instructions to use ncoop57/codeformer-java with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ncoop57/codeformer-java with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ncoop57/codeformer-java") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
ncoop57 commited on
Commit ·
b5807f6
1
Parent(s): a7dd858
Add model
Browse files- pytorch_model.bin +1 -1
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 498674551
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60ce79a96d7a41a207e79cfea9d5b62876b04591c19495178bedc5ff7c475311
|
| 3 |
size 498674551
|