File size: 906 Bytes
0c86019
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ac934b2
0c86019
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
base_model: intfloat/multilingual-e5-large
library_name: sentence-transformers

## Usage

### Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

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

Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("HasinMDG/multilingual-e5-large")
# Run inference
sentences = [
    "passage: Fit Bodies Aren't Perfect, Either \n",
    'passage: Royals attend extravagant ceremony to celebrate the opening of new museum',
    'passage: Native-American Kids Doused With Beer at SD Hockey Game \n',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]

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