Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ddobokki
/
electra-small-sts-cross-encoder

Text Ranking
sentence-transformers
PyTorch
Safetensors
Korean
electra
sentence_transformers
cross_encoder
Model card Files Files and versions
xet
Community
2

Instructions to use ddobokki/electra-small-sts-cross-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use ddobokki/electra-small-sts-cross-encoder with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("ddobokki/electra-small-sts-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)
  • Notebooks
  • Google Colab
  • Kaggle
electra-small-sts-cross-encoder
114 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 7 commits
ddobokki's picture
ddobokki
tomaarsen's picture
tomaarsen HF Staff
Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (#2)
e7e16e5 verified about 1 year ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#1) over 1 year ago
  • CECorrelationEvaluator_sts-dev_results.csv
    1.83 kB
    first commit almost 4 years ago
  • README.md
    604 Bytes
    Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (#2) about 1 year ago
  • config.json
    893 Bytes
    first commit almost 4 years ago
  • model.safetensors
    56.5 MB
    xet
    Adding `safetensors` variant of this model (#1) over 1 year ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    56.6 MB
    xet
    first commit almost 4 years ago
  • special_tokens_map.json
    112 Bytes
    first commit almost 4 years ago
  • tokenizer.json
    815 kB
    first commit almost 4 years ago
  • tokenizer_config.json
    397 Bytes
    first commit almost 4 years ago
  • vocab.txt
    263 kB
    first commit almost 4 years ago