sentence1: sentiment analysis is a collection of methods and algorithms used to infer and measure affection expressed by a writer .
sentence2: sentiment analysis is a natural language processing ( nlp ) task ( cite-p-10-3-0 ) which aims at classifying documents according to the opinion expressed about a given subject ( federici and dragoni , 2016a , b ) .