Testing: Hugging Face - Hate Speech Tutorial

1.Testing CREATE MODEL

CREATE MODEL mindsdb.hf_hate
PREDICT PRED
USING
engine = 'huggingface',
task = 'text-classification',
model_name = 'Hate-speech-CNERG/bert-base-uncased-hatexplain',
input_column = 'text';

creating model

2.Testing SELECT (making predictions)

SELECT *
FROM mindsdb.hf_hate
WHERE text = 'I like you. I love you.';

making predictions