Minor refactorings on TwitterSentimentDetector. A separate handler for
training added