}
private void updateAllFeatures(ArrayList<Feature> allFeats, ParsedData parsingResult, ArrayList<Word> allWords) {
ArrayList<WordPos> taggedWords = parsingResult.getTaggedWords();
SWNEntryKey tempFeatKey;
SWNEntryVal tempFeatVal;
SentimentFeature tempFeature;
for (WordPos word : taggedWords) {
tempFeatKey = new SWNEntryKey(allWords.get(word.getWordIndex()).word(), TagParser.parseTagToGeneral(word.getWordTag()));
tempFeature = new SentimentFeature(tempFeatKey);
if (!allFeats.contains(tempFeature)) {
tempFeatVal = SentiWordNetDict.extract(tempFeatKey);
if (tempFeatVal.getObjectivityScore() > 0.5 || tempFeatVal.getPositiveSocre() == tempFeatVal.getNegativeScore()) {
continue;
}
tempFeature.setFinalWeight(tempFeatVal);
allFeats.add(tempFeature);
}