Views
No views yet
1from inference import HateSpeechDetector
2
3# Initialize the detector
4detector = HateSpeechDetector()
5
6# Make a prediction
7text = "Your text here"
8result = detector.predict(text)
9
10print(f"Predicted class: {result['predicted_class']}")
11print(f"Probabilities: {result['probabilities']}")model.pkl: The trained scikit-learn pipelineconfig.json: Model configuration and metadatapreprocessing.py: Text preprocessing functionsinference.py: Inference class for making predictionsREADME.md: This documentation