April 16, 2022, 1:23 p.m. | /u/Dry_Back_1116

Natural Language Processing www.reddit.com

expected shape=(None, 128), found shape=(None, 3)

Why do i get this error when i pass in a single string to predict?

I am trying out a hate speech detection model and it predicts whole datasets but not sentences, it throws this error,

any help would be much appreciated! Thank you

Notebook link: [https://www.kaggle.com/code/abrh119/test-toxic-comments-bert](https://www.kaggle.com/code/abrh119/test-toxic-comments-bert)

bert classification cvs languagetechnology text text classification

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

AI Engineering Manager

@ M47 Labs | Barcelona, Catalunya [Cataluña], Spain