|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynesketch.emotion.util.HeuristicsUtility
public class HeuristicsUtility
Utility class for some heuristic alghoritms used for text processing.
| Constructor Summary | |
|---|---|
HeuristicsUtility()
|
|
| Method Summary | |
|---|---|
static double |
computeCapsLockQoef(java.lang.String word)
Computes the upper case qoeficient. |
static double |
computeEmoticonCoef(java.lang.String word,
AffectWord emoticon)
Computes emoticon qoef for the word. |
static double |
computeEmoticonCoefForSentence(java.lang.String sentence)
Computes emotiocon qoef for the sentence. |
static double |
computeExclaminationQoef(java.lang.String text)
Computes the exclamination qoef -- function of a number of '!' |
static double |
computeModifier(java.lang.String word)
Computes the intensity modifier based on the word. |
static boolean |
hasNegation(java.lang.String sentence)
Returns true if sentence has negation in it. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeuristicsUtility()
| Method Detail |
|---|
public static double computeEmoticonCoefForSentence(java.lang.String sentence)
throws java.io.IOException
sentence - String representing the sentence
java.io.IOException
public static double computeEmoticonCoef(java.lang.String word,
AffectWord emoticon)
word - String representing the wordemoticon - AffectWord representing the emoticon
public static boolean hasNegation(java.lang.String sentence)
throws java.io.IOException
sentence - String representing the sentence
java.io.IOException
public static double computeModifier(java.lang.String word)
throws java.io.IOException
word - String representing the word
java.io.IOExceptionpublic static double computeCapsLockQoef(java.lang.String word)
word - String representing the word
public static double computeExclaminationQoef(java.lang.String text)
text - String representing the sentence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||