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

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US