A context-based model for sentiment analysis in twitter