ParsedData resultData = sParser.parse(Words, opts);
Word featureWord = new Word(feature);
int featIndex = Words.indexOf(featureWord);
Sentiment sentimentResult = Sentiment.Neutral;
if (!feature.equals("") && featIndex != -1) {
WordPos theFeature = resultData.getWordByIndex(featIndex);
return classifyTextByFeatures(resultData, Words, theFeature);
}
// sentimentResult = classifyTextByNouns(resultData, Words);
if (sentimentResult == Sentiment.Neutral) {
sentimentResult = classifyTextByWords(resultData, Words);