Views
No views yet
pytorch_model.bin: The trained model weights.config.json: Model configuration file.merges.txt: BPE tokenizer merges file.model.safetensors: Model weights in safetensors format.special_tokens_map.json: Tokenizer special tokens mapping.tokenizer_config.json: Tokenizer configuration file.vocab.json: Tokenizer vocabulary file.roberta-toxic-comment-classifier.pkl: Serialized best model state dictionary (for PyTorch).README.md: This documentation file.from transformers import pipeline
# Load the model and tokenizer
model_name = "prabhaskenche/pk-toxic-comment-classification-using-RoBERTa"
classifier = pipeline("text-classification", model=model_name)
# Example usage
text = "You're the worst person I've ever met."
result = classifier(text)
print(result)
pip install torch transformers sklearn