Sentiment analysis or opinion mining refers to a broad (definitionally challenged) area of natural language processing, computational linguistics and text mining. Generally speaking, it aims to determine the attitude of a speaker or a writer with respect to some topic. The attitude may be their judgment or evaluation (see appraisal theory), their affective state (that is to say, the emotional state of the author when writing) or the intended emotional communication (that is to say, the emotional effect the author wishes to have on the reader).
LingePipe has a nice Sentiment Tutorial that covers assigning sentiment to movie reviews using language models
References: Sentiment Analysis (Wikipedia), Sentimental Analysis Tutorial
