Text classification and sentiment analysis in social networks using a probability model