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

  • Log In
  • Sign Up

tum-nlp
/
bert-counterspeech-classifier

Text Classification
Transformers
google-tensorflow TensorFlow
English
bert
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use tum-nlp/bert-counterspeech-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use tum-nlp/bert-counterspeech-classifier with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="tum-nlp/bert-counterspeech-classifier")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("tum-nlp/bert-counterspeech-classifier")
    model = AutoModelForSequenceClassification.from_pretrained("tum-nlp/bert-counterspeech-classifier")
  • Notebooks
  • Google Colab
  • Kaggle
bert-counterspeech-classifier
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
KAXY's picture
KAXY
Update README.md
a1a7267 almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    716 Bytes
    Update README.md almost 3 years ago
  • config.json
    827 Bytes
    Upload 6 files almost 3 years ago
  • special_tokens_map.json
    125 Bytes
    Upload 6 files almost 3 years ago
  • tf_model.h5
    438 MB
    xet
    Upload 6 files almost 3 years ago
  • tokenizer.json
    712 kB
    Upload 6 files almost 3 years ago
  • tokenizer_config.json
    314 Bytes
    Upload 6 files almost 3 years ago
  • vocab.txt
    232 kB
    Upload 6 files almost 3 years ago