sentence1: sentiment analysis is a nlp task that deals with extraction of opinion from a piece of text on a topic .
sentence2: sentiment analysis is a collection of methods and algorithms used to infer and measure affection expressed by a writer .