Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Omartificial-Intelligence-Space
/
ARA-Reranker-V1

Text Ranking
sentence-transformers
Safetensors
Transformers
Arabic
xlm-roberta
text-classification
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use Omartificial-Intelligence-Space/ARA-Reranker-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Omartificial-Intelligence-Space/ARA-Reranker-V1 with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("Omartificial-Intelligence-Space/ARA-Reranker-V1")
    
    query = "Which planet is known as the Red Planet?"
    passages = [
    	"Venus is often called Earth's twin because of its similar size and proximity.",
    	"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
    	"Jupiter, the largest planet in our solar system, has a prominent red spot.",
    	"Saturn, famous for its rings, is sometimes mistaken for the Red Planet."
    ]
    
    scores = model.predict([(query, passage) for passage in passages])
    print(scores)
  • Transformers

    How to use Omartificial-Intelligence-Space/ARA-Reranker-V1 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("Omartificial-Intelligence-Space/ARA-Reranker-V1")
    model = AutoModelForSequenceClassification.from_pretrained("Omartificial-Intelligence-Space/ARA-Reranker-V1")
  • Notebooks
  • Google Colab
  • Kaggle
ARA-Reranker-V1
Ctrl+K
Ctrl+K
  • 2 contributors
History: 8 commits
Omartificial-Intelligence-Space's picture
Omartificial-Intelligence-Space
tomaarsen's picture
tomaarsen HF Staff
Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (#1)
1b2e04a verified about 1 year ago
  • .gitattributes
    1.57 kB
    upload files over 1 year ago
  • README.md
    4.49 kB
    Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (#1) about 1 year ago
  • config.json
    808 Bytes
    upload files over 1 year ago
  • model.safetensors
    2.27 GB
    xet
    upload files over 1 year ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    upload files over 1 year ago
  • special_tokens_map.json
    964 Bytes
    upload files over 1 year ago
  • tokenizer.json
    17.1 MB
    xet
    upload files over 1 year ago
  • tokenizer_config.json
    1.17 kB
    upload files over 1 year ago