Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -28,7 +28,10 @@ scores = model.predict([
|
|
| 28 |
# => array([ 8.607138 , -4.3200774], dtype=float32)
|
| 29 |
```
|
| 30 |
|
| 31 |
-
Alternatively, you can also use the `CrossEncoder.rank` argument to rerank documents given a query:
|
|
|
|
|
|
|
|
|
|
| 32 |
```python
|
| 33 |
from sentence_transformers import CrossEncoder
|
| 34 |
|
|
@@ -69,6 +72,7 @@ Query: How many people live in Berlin?
|
|
| 69 |
-4.32 Berlin is well known for its museums.
|
| 70 |
"""
|
| 71 |
```
|
|
|
|
| 72 |
|
| 73 |
Hugging Face makes it easy to collaboratively build and showcase your [Sentence Transformers](https://www.sbert.net/) models! You can collaborate with your organization, upload and showcase your own models in your profile ❤️
|
| 74 |
|
|
|
|
| 28 |
# => array([ 8.607138 , -4.3200774], dtype=float32)
|
| 29 |
```
|
| 30 |
|
| 31 |
+
Alternatively, you can also use the [`CrossEncoder.rank`](https://sbert.net/docs/package_reference/cross_encoder/cross_encoder.html#sentence_transformers.cross_encoder.CrossEncoder.rank) argument to rerank documents given a query:
|
| 32 |
+
|
| 33 |
+
<details><summary>Click to see the script</summary>
|
| 34 |
+
|
| 35 |
```python
|
| 36 |
from sentence_transformers import CrossEncoder
|
| 37 |
|
|
|
|
| 72 |
-4.32 Berlin is well known for its museums.
|
| 73 |
"""
|
| 74 |
```
|
| 75 |
+
</details>
|
| 76 |
|
| 77 |
Hugging Face makes it easy to collaboratively build and showcase your [Sentence Transformers](https://www.sbert.net/) models! You can collaborate with your organization, upload and showcase your own models in your profile ❤️
|
| 78 |
|