Sentiment analysis is done using algorithms that use text analysis and natural language processing to classify words as either positive, negative, or neutral. It is done using Positive or Negative Lexicons. A sentiment score is derived depending on the lexicons used in the textual data.