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

  • Log In
  • Sign Up

baobabtech
/
water-conflict-classifier

Text Classification
setfit
Safetensors
sentence-transformers
English
bert
multi-label
water-conflict
text-embeddings-inference
🇪🇺 Region: EU
Model card Files Files and versions
xet
Community

Instructions to use baobabtech/water-conflict-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • setfit

    How to use baobabtech/water-conflict-classifier with setfit:

    from setfit import SetFitModel
    
    model = SetFitModel.from_pretrained("baobabtech/water-conflict-classifier")
    
    preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"])
    print(preds)
  • sentence-transformers

    How to use baobabtech/water-conflict-classifier with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("baobabtech/water-conflict-classifier")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
water-conflict-classifier
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
oliviermills's picture
oliviermills
Water conflict classifier v3.0 release
a29c937 about 1 month ago
  • 1_Pooling
    Water conflict classifier v3.0 release about 1 month ago
  • .gitattributes
    1.52 kB
    Water conflict classifier v3.0 release about 1 month ago
  • README.md
    10.9 kB
    Water conflict classifier v3.0 release about 1 month ago
  • config.json
    655 Bytes
    Water conflict classifier v3.0 release about 1 month ago
  • config_sentence_transformers.json
    277 Bytes
    Water conflict classifier v3.0 release about 1 month ago
  • config_setfit.json
    98 Bytes
    Water conflict classifier v3.0 release about 1 month ago
  • model.safetensors
    133 MB
    xet
    Water conflict classifier v3.0 release about 1 month ago
  • model_head.pkl
    11.2 kB
    xet
    Water conflict classifier v3.0 release about 1 month ago
  • modules.json
    349 Bytes
    Water conflict classifier v3.0 release about 1 month ago
  • sentence_bert_config.json
    56 Bytes
    Water conflict classifier v3.0 release about 1 month ago
  • special_tokens_map.json
    695 Bytes
    Water conflict classifier v3.0 release about 1 month ago
  • tokenizer.json
    712 kB
    Water conflict classifier v3.0 release about 1 month ago
  • tokenizer_config.json
    1.27 kB
    Water conflict classifier v3.0 release about 1 month ago
  • vocab.txt
    232 kB
    Water conflict classifier v3.0 release about 1 month ago