How to do sentiment analysis on my own dataset?
Hi,I have seenthisexample, which does sentiment analysis on product reviews.Therefore, is there a way to do this with my own dataset? I want to classify the sentiment of text as “happy”, “sad” or “neutral” using my own dataset.Thanks.
2021-06-18T04:49:02Z
You have to define your owntorch.utils.data.Datasetandtorch.utils.data.DataLoaderto load your own labeled text. Then choose an LM like BERT from the huggingface library to finetune.