Hacker News new | ask | show | jobs
by armchairhacker 1322 days ago
look up “sentiment analysis NLP”. That is what you want, except instead of detecting whether text has a positive or negative opinion, you detect whether it’s “cringe” / “not cringe”.

I would start by building a sentiment-analysis model by following a tutorial like [1]. Except instead of a dataset with data labeled “positive opinion” and “negative opinion”, you need data labeled “cringe” and “not cringe”. The hard part is finding and classifying that data: remember that if you just take a bunch of “cringe” and ordinary tweets, you may be training for spurious correlations like “hot take” which your model will misinterpret as being “cringe”

[1] https://huggingface.co/blog/sentiment-analysis-python#3-buil...