sentence1: sentiment analysis is a technique to classify documents based on the polarity of opinion expressed by the author of the document ( cite-p-16-1-13 ) .
sentence2: sentiment analysis is a collection of methods and algorithms used to infer and measure affection expressed by a writer .