| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectemolib.util.proc.TextDataProcessor
emolib.classifier.Classifier
emolib.classifier.heuristic.FiveIntervalsKE
public class FiveIntervalsKE
The FiveIntervalsKE is a heuristic rules-based classifier operating on the circumplex with emotions.
There are five possible emotions (surprise, joy, sadness, anger and fear, apart from the neutral feeling) according to the proposal of David Garcí in his Master's Thesis, derived from (Albrecht et al., 2005).
The KE (Knowledge Engineering) particle refers to the fact that these rules have been stated by a human expert, thus this is not a trainable classifier. Then, it is not saved nor loaded (but used directly) and by default it has been hard coded to return the emotion label in English.
 --
 (Albrecht  et al., 2005) Albrecht, I., Scröder, M., Haber, J. and
 Seidel, H.-P., "Mixed Feelings: Expression of Non-Basic Emotions in a Muscle-Based Talking Head",
 DFKI, Germany, 2005.
 
| Constructor Summary | |
|---|---|
| FiveIntervalsKE()Main constructor of this rules classifier. | |
| Method Summary | |
|---|---|
|  java.lang.String | getCategory(FeatureBox inputFeatures)The function that decides the most appropriate emotional category. | 
|  void | load(java.lang.String path)Generic function to load a previously saved classifier. | 
|  void | save(java.lang.String path)Generic method to save the fully fledged classifier into a given file path. | 
|  void | trainingProcedure()Void method to train required by the Classifier class. | 
| Methods inherited from class emolib.classifier.Classifier | 
|---|
| applyClassification, getData, getListOfExampleCategories, getListOfExampleFeatures, initialize, inputTrainingExample, newProperties, register, resetExamples, train | 
| 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 FiveIntervalsKE()
| Method Detail | 
|---|
public java.lang.String getCategory(FeatureBox inputFeatures)
Classifier
getCategory in class ClassifierinputFeatures - The input emotional features.
public void trainingProcedure()
trainingProcedure in class Classifierpublic void save(java.lang.String path)
Classifier
save in class Classifierpath - The file path to save the classifier.public void load(java.lang.String path)
Classifier
load in class Classifierpath - The path of the file which contains the previously saved
 classifier.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||