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

  • Log In
  • Sign Up

radlab
/
polish-cross-encoder

Text Ranking
sentence-transformers
PyTorch
Safetensors
Transformers
Polish
roberta
text-classification
feature-extraction
sentence-similarity
text-embeddings-inference
Model card Files Files and versions
xet
Community
2

Instructions to use radlab/polish-cross-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use radlab/polish-cross-encoder with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("radlab/polish-cross-encoder")
    
    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 radlab/polish-cross-encoder with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("radlab/polish-cross-encoder")
    model = AutoModelForSequenceClassification.from_pretrained("radlab/polish-cross-encoder")
  • Notebooks
  • Google Colab
  • Kaggle
polish-cross-encoder
3.5 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 7 commits
pkedzia's picture
pkedzia
tomaarsen's picture
tomaarsen HF Staff
Update model metadata to set pipeline tag to the new `text-ranking` (#2)
7c2c5b9 verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • CECorrelationEvaluator_sts-dev_results.csv
    1.62 kB
    Upload 8 files over 2 years ago
  • README.md
    2.58 kB
    Update model metadata to set pipeline tag to the new `text-ranking` (#2) about 1 year ago
  • added_tokens.json
    23 Bytes
    Upload 8 files over 2 years ago
  • config.json
    789 Bytes
    Upload 8 files over 2 years ago
  • model.safetensors
    1.74 GB
    xet
    Adding `safetensors` variant of this model (#1) over 1 year ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict"

    What is a pickle import?

    1.74 GB
    xet
    Upload 8 files over 2 years ago
  • special_tokens_map.json
    280 Bytes
    Upload 8 files over 2 years ago
  • tokenizer.json
    8.59 MB
    Upload tokenizer.json almost 2 years ago
  • tokenizer_config.json
    379 Bytes
    Upload 8 files over 2 years ago
  • unigram.json
    7.56 MB
    Upload 8 files over 2 years ago