Home > Enterprise >  How to use DistilBERT Huggingface NLP model to perform sentiment analysis on new data?
How to use DistilBERT Huggingface NLP model to perform sentiment analysis on new data?

Time:10-25

I am using DistilBERT to do sentiment analysis on my dataset. The dataset contains text and a label for each row which identifies whether the text is a positive or negative movie review (eg: 1 = positive and 0 = negative). Here is the code from the huggingface documentation (https://huggingface.co/transformers/custom_datasets.html?highlight=imdb)

#This dataset can be explored in the Hugging Face model hub (IMDb), and can be alternatively downloaded with the            
  • Related