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

khailai
/
roberta-offensive-classifier

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

Instructions to use khailai/roberta-offensive-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use khailai/roberta-offensive-classifier with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="khailai/roberta-offensive-classifier")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("khailai/roberta-offensive-classifier")
    model = AutoModelForSequenceClassification.from_pretrained("khailai/roberta-offensive-classifier")
  • Notebooks
  • Google Colab
  • Kaggle
roberta-offensive-classifier
Ctrl+K
Ctrl+K
  • 1 contributor
History: 18 commits
khailai's picture
khailai
Trained on new data DICA_Dec16 (lower-cased and case-preserved) for 5 epochs each. 96% accuracy and 0.88 F1 score
d9a6381 over 4 years ago
  • .amlignore
    315 Bytes
    Pushed after epoch over 4 years ago
  • .amlignore.amltmp
    315 Bytes
    Pushed after epoch over 4 years ago
  • .gitattributes
    1.18 kB
    initial commit over 4 years ago
  • config.json
    1.13 kB
    Trained on new data DICA_Dec15 for 8 epochs. 96% accuracy and 0.85 F1 score over 4 years ago
  • merges.txt
    456 kB
    Pushed after epoch over 4 years ago
  • special_tokens_map.json
    239 Bytes
    Pushed after epoch over 4 years ago
  • tf_model.h5
    499 MB
    xet
    Trained on new data DICA_Dec16 (lower-cased and case-preserved) for 5 epochs each. 96% accuracy and 0.88 F1 score over 4 years ago
  • tokenizer.json
    1.36 MB
    Pushed after epoch over 4 years ago
  • tokenizer_config.json
    1.3 kB
    Pushed after epoch over 4 years ago
  • vocab.json
    798 kB
    Pushed after epoch over 4 years ago