| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectemolib.util.proc.TextDataProcessor
emolib.eks.EmotionalKeywordSpotter
public abstract class EmotionalKeywordSpotter
The EmotionalKeywordSpotter abstract class defines the general structure to perform the Emotional Keyword Spotting (EKS) process, which detects the words with an affective content and assigns them the pertinent emotional dimensions.
This module should work along with an affective dictionary, containing the emotional dimensions for each of the words in the database. Once the EmotionalKeywordSpotter detects the presence of an affective word, it tags it accordingly. Normally these dictionaries index stems of words in order to be as much extensive as possible. In order to surpass the conflation effect introduced by the stemming process, a POS disambiguation is used.
| Constructor Summary | |
|---|---|
| EmotionalKeywordSpotter()Main constructor of the Stemmer. | |
| Method Summary | |
|---|---|
| abstract  void | applyEKS(TextData inputTextDataObject)Method to perform the stemming process. | 
|  Data | getData()Obtains the TextData from the previous module, processes it and makes it available to the rest of the text processing chain. | 
|  void | initialize()Method to initialize the Stemmer. | 
|  void | newProperties(PropertySheet ps)This method is called when this configurable component has new data. | 
|  void | register(java.lang.String name,
         Registry registry)Register my properties. | 
| Methods inherited from class emolib.util.proc.TextDataProcessor | 
|---|
| flush, getName, getPredecessor, setPredecessor, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public EmotionalKeywordSpotter()
| Method Detail | 
|---|
public void register(java.lang.String name,
                     Registry registry)
              throws PropertyException
Configurable
register in interface Configurableregister in class TextDataProcessorname - the name of the componentregistry - the registry for this component
PropertyException
public void newProperties(PropertySheet ps)
                   throws PropertyException
Configurable
newProperties in interface ConfigurablenewProperties in class TextDataProcessorps - a property sheet holding the new data
PropertyException - if there is a problem with the properties.
public Data getData()
             throws DataProcessingException
getData in interface DataProcessorgetData in class TextDataProcessorDataProcessingException - If there is a processing error.public void initialize()
initialize in interface DataProcessorinitialize in class TextDataProcessorpublic abstract void applyEKS(TextData inputTextDataObject)
inputTextDataObject - The TextData object to process.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||