File size: 736 Bytes
30fe16e
 
67c8bf8
 
 
 
 
30fe16e
 
 
 
59a6300
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
library_name: transformers
datasets:
- umarigan/all_nli_tr
language:
- tr
pipeline_tag: sentence-similarity
---

# Model Card for Model ID

```bash
pip install -U sentence-transformers
```

Load the model and run inference.
```python
from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("umarigan/distilbert-turkish-sentence-similarity")
# Run inference
sentences = [
    'Bu yıl tatile Antalya'ya gideceğiz.',
    'Yazın Antalya'da tatil yapacağız.'
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [2, 768]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [2, 2]
```