|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynesketch.emotion.util.LexicalUtility
public class LexicalUtility
Utility class for some text processing alghoritms
| Method Summary | |
|---|---|
AffectWord |
getAffectWord(java.lang.String word)
Returns the instance of AffectWord for the given word. |
java.util.List<AffectWord> |
getAffectWords()
Returns all instances of AffectWord |
AffectWord |
getEmoticonAffectWord(java.lang.String word)
Returns the instance of AffectWord for the given word, which is
emoticon. |
java.util.List<AffectWord> |
getEmoticonWords(java.lang.String sentence)
Returns all instances of AffectWord which represent emoticons for
the given sentence. |
static LexicalUtility |
getInstance()
Returns the Singleton instance of the LexicalUtility. |
boolean |
hasNegation(java.lang.String sentence)
Returns true if the sentence contains a negation word in it. |
boolean |
isIntensityModifier(java.lang.String word)
Returns true if the word is an intensity modifier. |
boolean |
isNegation(java.lang.String word)
Returns true if the word is a negation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static LexicalUtility getInstance()
throws java.io.IOException
LexicalUtility.
LexicalUtility
java.io.IOExceptionpublic AffectWord getAffectWord(java.lang.String word)
AffectWord for the given word.
word - String representing the word
AffectWordpublic AffectWord getEmoticonAffectWord(java.lang.String word)
AffectWord for the given word, which is
emoticon.
word - String representing the word
AffectWordpublic java.util.List<AffectWord> getEmoticonWords(java.lang.String sentence)
AffectWord which represent emoticons for
the given sentence.
sentence - String representing the sentence
AffectWord instancespublic java.util.List<AffectWord> getAffectWords()
AffectWord
AffectWord instancespublic boolean isNegation(java.lang.String word)
word - String which represents a word
public boolean hasNegation(java.lang.String sentence)
sentence - String which represents a sentence
public boolean isIntensityModifier(java.lang.String word)
word - String which represents a word
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||