| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.demokritos.iit.jinsect.classification.Decider
gr.demokritos.iit.jinsect.classification.SVMDecider
public class SVMDecider
This class describes objects that use Support Vector Machine (SVM) mechanics, in order to classify texts to given categories. The class uses LibSVM implementation of SVMs (see LibSVM for more).
| Field Summary | 
|---|
| Fields inherited from class gr.demokritos.iit.jinsect.classification.Decider | 
|---|
Repository | 
| Constructor Summary | |
|---|---|
SVMDecider(INSECTDB dbRepository)
Creates a new instance of SVMDecider, given an INSECTDB repository of data. | 
|
| Method Summary | |
|---|---|
 void | 
addEvidence(Decision dPrv,
            java.lang.String sFinalCategory)
Updates the evidence of the determiner with new data, with respect to a previous decision.  | 
protected  svm_node[] | 
documentToNodeArray(SimpleTextDocument dDoc)
Provides an svm_node array structure, derived from a text document, in order to use the LibSVM functions.  | 
 void | 
reset()
Resets categories and all other data of the Decider.  | 
protected  Decision | 
suggestCategory(SimpleTextDocument dDoc)
Suggests a category for a given document.  | 
| Methods inherited from class gr.demokritos.iit.jinsect.classification.Decider | 
|---|
addEvidence, filterDataString, getAvailableCategories, setRepository, suggestCategory | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SVMDecider(INSECTDB dbRepository)
INSECTDB repository of data.
| Method Detail | 
|---|
protected Decision suggestCategory(SimpleTextDocument dDoc)
suggestCategory in class DeciderdDoc - The document to classify.
Decision upon the classification of the given document.
public void addEvidence(Decision dPrv,
                        java.lang.String sFinalCategory)
Decider
addEvidence in class DeciderdPrv - The previous decision info.sFinalCategory - The correct category for the selected document.protected svm_node[] documentToNodeArray(SimpleTextDocument dDoc)
dDoc - The text document to represent.
public void reset()
Decider
reset in class Decider
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||