omarelshehy
commited on
Commit
•
a691bc5
1
Parent(s):
b26500c
Update README.md
Browse files
README.md
CHANGED
@@ -12,4 +12,20 @@ tags:
|
|
12 |
---
|
13 |
|
14 |
base model : Omartificial-Intelligence-Space/GATE-AraBert-v1
|
15 |
-
Arabic-mmarco-triplet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
---
|
13 |
|
14 |
base model : Omartificial-Intelligence-Space/GATE-AraBert-v1
|
15 |
+
Arabic-mmarco-triplet
|
16 |
+
|
17 |
+
## Usage
|
18 |
+
|
19 |
+
# Within sentence-transformers
|
20 |
+
The usage becomes easier when you have [SentenceTransformers](https://www.sbert.net/) installed. Then, you can use the pre-trained models like this:
|
21 |
+
|
22 |
+
```python
|
23 |
+
from sentence_transformers import CrossEncoder
|
24 |
+
model = CrossEncoder('NAMAA-Space/GATE-Reranker-V1', max_length=512)
|
25 |
+
|
26 |
+
Query = 'كيف يمكن استخدام التعلم العميق في معالجة الصور الطبية؟'
|
27 |
+
Paragraph1 = 'التعلم العميق يساعد في تحليل الصور الطبية وتشخيص الأمراض'
|
28 |
+
Paragraph2 = 'الذكاء الاصطناعي يستخدم في تحسين الإنتاجية في الصناعات'
|
29 |
+
|
30 |
+
scores = model.predict([(Query, Paragraph1), (Query, Paragraph2)])
|
31 |
+
```
|