New machine learning models can detect hate speech and violence from texts