Calculate sentiment of sentences in which topic-related words appear.