Update README.md
Browse files
README.md
CHANGED
@@ -12,9 +12,10 @@ Note: The model is not suitable to estimate the similarity of questions, e.g. th
|
|
12 |
## Usage and Performance
|
13 |
|
14 |
Pre-trained models can be used like this:
|
15 |
-
```
|
16 |
from sentence_transformers import CrossEncoder
|
17 |
-
|
|
|
18 |
scores = model.predict([('Question 1', 'Question 2'), ('Question 3', 'Question 4')])
|
19 |
```
|
20 |
|
|
|
12 |
## Usage and Performance
|
13 |
|
14 |
Pre-trained models can be used like this:
|
15 |
+
```python
|
16 |
from sentence_transformers import CrossEncoder
|
17 |
+
|
18 |
+
model = CrossEncoder('cross-encoder/quora-roberta-base')
|
19 |
scores = model.predict([('Question 1', 'Question 2'), ('Question 3', 'Question 4')])
|
20 |
```
|
21 |
|