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

BSC-NLP4BIA
/
biomedical-semantic-relation-classifier-setfit

sentence-transformers
PyTorch
setfit
Spanish
roberta
relation-classification
bert
biomedical
lexical semantics
bionlp
Model card Files Files and versions
xet
Community
1

Instructions to use BSC-NLP4BIA/biomedical-semantic-relation-classifier-setfit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use BSC-NLP4BIA/biomedical-semantic-relation-classifier-setfit with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("BSC-NLP4BIA/biomedical-semantic-relation-classifier-setfit")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • setfit

    How to use BSC-NLP4BIA/biomedical-semantic-relation-classifier-setfit with setfit:

    from setfit import SetFitModel
    
    model = SetFitModel.from_pretrained("BSC-NLP4BIA/biomedical-semantic-relation-classifier-setfit")
  • Notebooks
  • Google Colab
  • Kaggle
biomedical-semantic-relation-classifier-setfit
508 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
smarsol's picture
smarsol
Update README.md
840d244 verified about 2 years ago
  • 1_Pooling
    Upload 13 files about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    3.32 kB
    Update README.md about 2 years ago
  • config.json
    763 Bytes
    Upload 13 files about 2 years ago
  • config_sentence_transformers.json
    128 Bytes
    Upload 13 files about 2 years ago
  • merges.txt
    540 kB
    Upload 13 files about 2 years ago
  • model_head.pkl

    Detected Pickle imports (5)

    • "numpy.ndarray",
    • "numpy.dtype",
    • "joblib.numpy_pickle.NumpyArrayWrapper",
    • "sklearn.multioutput.MultiOutputClassifier",
    • "sklearn.linear_model._logistic.LogisticRegression"

    How to fix it?

    26.8 kB
    xet
    Upload 13 files about 2 years ago
  • modules.json
    229 Bytes
    Upload 13 files about 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    504 MB
    xet
    Upload 13 files about 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Upload 13 files about 2 years ago
  • special_tokens_map.json
    957 Bytes
    Upload 13 files about 2 years ago
  • tokenizer.json
    2.32 MB
    Upload 13 files about 2 years ago
  • tokenizer_config.json
    1.38 kB
    Upload 13 files about 2 years ago
  • vocab.json
    894 kB
    Upload 13 files about 2 years ago