Skip to content

Commit

Permalink
fixing typo in surprise emotion, making emotions public
Browse files Browse the repository at this point in the history
  • Loading branch information
Russ Savage committed May 11, 2017
1 parent 59007ba commit 9edda3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/cognitivej/vision/emotion/Emotion.java
Expand Up @@ -225,7 +225,7 @@ public String toString() {
}

public class Scores {
double anger, contempt, disgust, fear, happiness, neutral, sadness, surprise;
public double anger, contempt, disgust, fear, happiness, neutral, sadness, surprise;

public Map<EmotionScore, Double> scores() {
return new HashMap<EmotionScore, Double>() {{
Expand All @@ -236,7 +236,7 @@ public Map<EmotionScore, Double> scores() {
put(EmotionScore.HAPPINESS, happiness);
put(EmotionScore.NEUTRAL, neutral);
put(EmotionScore.SADNESS, sadness);
put(EmotionScore.SUPRISE, surprise);
put(EmotionScore.SURPRISE, surprise);
}};

}
Expand All @@ -249,7 +249,7 @@ public String toString() {
}

public enum EmotionScore {
ANGER, CONTEMPT, DISGUST, FEAR, HAPPINESS, NEUTRAL, SADNESS, SUPRISE;
ANGER, CONTEMPT, DISGUST, FEAR, HAPPINESS, NEUTRAL, SADNESS, SURPRISE;
}


Expand Down

0 comments on commit 9edda3f

Please sign in to comment.