| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectemolib.classifier.FeatureBox
public class FeatureBox
The FeatureBox class defines the data container that must be used to interact with the classifiers.
This container just keeps the features that are relevant for emotional prediction, along with the textual elements used to produce such features. Since the many classifiers deal with different kinds of features and the training corpora used to extract the knowledge provide complementary data, this class is useful to deal with these situations and enables the classifiers to behave in a standardised manner.
| Constructor Summary | |
|---|---|
| FeatureBox()Main constructor. | |
| FeatureBox(java.lang.String givenText)Constructor with text. | |
| Method Summary | |
|---|---|
|  boolean | containsEmotionalDimensions()Method to set if this FeatureBox contains emotional dimensions. | 
|  boolean | containsSynonyms()Function to check if this FeatureBox contains any synonyms. | 
|  float | getActivation()Function to retrieve the activation value of this FeatureBox. | 
|  float | getControl()Function to retrieve the control value of this FeatureBox. | 
|  boolean | getNegation()Function to retrieve the negation. | 
|  int | getNumberOfEmotionalDimensions()Function to retrieve the number of emotional dimensions that this FeatureBox object contains. | 
|  java.lang.String | getPOSTags()Function to retrieve the POS tags. | 
|  java.lang.String | getStemmedSynonyms()Function to retrieve the stemmed synonyms of the words. | 
|  java.lang.String | getStems()Function to retrieve the stems of the words. | 
|  java.lang.String | getSynonyms()Function to retrieve the synonyms of the words. | 
|  java.lang.String | getText()Function to retrieve the text. | 
|  float | getValence()Function to retrieve the valence value of this FeatureBox. | 
|  java.lang.String | getWords()Function to retrieve the words. | 
|  void | setActivation(float activation)Method to introduce the activation emotional dimension into this container. | 
|  void | setControl(float control)Method to introduce the control emotional dimension into this container. | 
|  void | setNegation(boolean neg)Method to input the negation feature of the words above.. | 
|  void | setNumberOfEmotionalDimensions(int numberOfDimensions)Method to set the number of emotional dimensions. | 
|  void | setPOSTags(java.lang.String tags)Method to input the POS tags. | 
|  void | setStemmedSynonyms(java.lang.String ssyns)Method to input the stemmed synonyms of the words (nouns, actually). | 
|  void | setStems(java.lang.String stems)Method to input the stems of the words. | 
|  void | setSynonyms(java.lang.String syns)Method to input the synonyms of the words (nouns, actually). | 
|  void | setText(java.lang.String input)Method to input text. | 
|  void | setValence(float valence)Method to introduce the valence emotional dimension into this container. | 
|  void | setWords(java.lang.String words)Method to input words. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public FeatureBox()
public FeatureBox(java.lang.String givenText)
| Method Detail | 
|---|
public void setText(java.lang.String input)
input - The text to input.public java.lang.String getText()
public void setWords(java.lang.String words)
words - The words to input.public java.lang.String getWords()
public void setPOSTags(java.lang.String tags)
tags - The POS tags to input.public java.lang.String getPOSTags()
public void setStems(java.lang.String stems)
stems - The stems to input.public java.lang.String getStems()
public void setSynonyms(java.lang.String syns)
syns - The synonyms to input.public boolean containsSynonyms()
public java.lang.String getSynonyms()
public void setStemmedSynonyms(java.lang.String ssyns)
ssyns - The stemmed synonyms to input.public java.lang.String getStemmedSynonyms()
public void setNegation(boolean neg)
neg - The negation to input.public boolean getNegation()
public boolean containsEmotionalDimensions()
public void setNumberOfEmotionalDimensions(int numberOfDimensions)
numberOfDimensions - The number of dimensions.public int getNumberOfEmotionalDimensions()
public void setValence(float valence)
valence - The valence value.public float getValence()
public void setActivation(float activation)
activation - The activation value.public float getActivation()
public void setControl(float control)
control - The control value.public float getControl()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||