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

davanstrien
/
dataset_mentions2

Text Classification
sentence-transformers
PyTorch
setfit
albert
Model card Files Files and versions
xet
Community
2

Instructions to use davanstrien/dataset_mentions2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use davanstrien/dataset_mentions2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("davanstrien/dataset_mentions2")
    
    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 davanstrien/dataset_mentions2 with setfit:

    from setfit import SetFitModel
    
    model = SetFitModel.from_pretrained("davanstrien/dataset_mentions2")
  • Notebooks
  • Google Colab
  • Kaggle
dataset_mentions2
96.5 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
e7c6e04 verified 6 months ago
  • 1_Pooling
    Add model over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    1.55 kB
    Add model over 3 years ago
  • config.json
    895 Bytes
    Add model over 3 years ago
  • config_sentence_transformers.json
    122 Bytes
    Add model over 3 years ago
  • model.safetensors
    46.7 MB
    xet
    Adding `safetensors` variant of this model 6 months ago
  • model_head.pkl

    Detected Pickle imports (4)

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

    How to fix it?

    6.99 kB
    xet
    Add model over 3 years ago
  • modules.json
    229 Bytes
    Add model over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    46.7 MB
    xet
    Add model over 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Add model over 3 years ago
  • special_tokens_map.json
    286 Bytes
    Add model over 3 years ago
  • spiece.model
    760 kB
    xet
    Add model over 3 years ago
  • tokenizer.json
    2.27 MB
    Add model over 3 years ago
  • tokenizer_config.json
    601 Bytes
    Add model over 3 years ago