This model was trained on a synthetic dataset of Arabic triplets generated using large language models (LLMs). It was refined using a scoring technique, making it ideal for ranking tasks in Arabic Natural Language Processing (NLP).
Model Use
This model is well-suited for Arabic text reranking tasks, including:
Below is an example of how to use the model with the
sentence_transformers
library to rerank paragraphs based on relevance to a query.
Code Example
from sentence_transformers import CrossEncoder
# Load the model
model = CrossEncoder('oddadmix/arabic-reranker', max_length=512)
# Define the query and candidate paragraphs
Query = 'كيف يمكن استخدام التعلم العميق في معالجة الصور الطبية؟'
Paragraph1 = 'التعلم العميق يساعد في تحليل الصور الطبية وتشخيص الأمراض'
Paragraph2 = 'الذكاء الاصطناعي يستخدم في تحسين الإنتاجية في الصناعات'# Score the paragraphs based on relevance to the query
scores = model.predict([(Query, Paragraph1), (Query, Paragraph2)])
# Output scoresprint("Score for Paragraph 1:", scores[0])
print("Score for Paragraph 2:", scores[1])
Runs of oddadmix arabic-reranker on huggingface.co
55
Total runs
4
24-hour runs
0
3-day runs
4
7-day runs
5
30-day runs
More Information About arabic-reranker huggingface.co Model
arabic-reranker huggingface.co
arabic-reranker huggingface.co is an AI model on huggingface.co that provides arabic-reranker's model effect (), which can be used instantly with this oddadmix arabic-reranker model. huggingface.co supports a free trial of the arabic-reranker model, and also provides paid use of the arabic-reranker. Support call arabic-reranker model through api, including Node.js, Python, http.
arabic-reranker huggingface.co is an online trial and call api platform, which integrates arabic-reranker's modeling effects, including api services, and provides a free online trial of arabic-reranker, you can try arabic-reranker online for free by clicking the link below.
oddadmix arabic-reranker online free url in huggingface.co:
arabic-reranker is an open source model from GitHub that offers a free installation service, and any user can find arabic-reranker on GitHub to install. At the same time, huggingface.co provides the effect of arabic-reranker install, users can directly use arabic-reranker installed effect in huggingface.co for debugging and trial. It also supports api for free installation.