gr.demokritos.iit.jinsect.classification
Class SVMDocDecider
java.lang.Object
gr.demokritos.iit.jinsect.classification.Decider
gr.demokritos.iit.jinsect.classification.SVMDecider
gr.demokritos.iit.jinsect.classification.SVMDocDecider
public class SVMDocDecider
- extends SVMDecider
This class derives from SVMDecider
, while at the same time holding every document it uses in
training for future reference. This requires big amounts of memory, but the update is supposed to be better.
Fields inherited from class gr.demokritos.iit.jinsect.classification.Decider |
Repository |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentList
protected java.util.ArrayList DocumentList
SVMDocDecider
public SVMDocDecider(INSECTDB dbRepository)
- Creates a new instance of SVMDocDecider, given an
INSECTDB
repository.
- Parameters:
dbRepository
- The repository to use.
addEvidence
public void addEvidence(Decision dPrv,
java.lang.String sFinalCategory)
- Description copied from class:
Decider
- Updates the evidence of the determiner with new data, with respect to a previous
decision.
- Overrides:
addEvidence
in class SVMDecider
- Parameters:
dPrv
- The previous decision info.sFinalCategory
- The correct category for the selected document.
suggestCategory
protected Decision suggestCategory(SimpleTextDocument dDoc)
- Description copied from class:
SVMDecider
- Suggests a category for a given document.
- Overrides:
suggestCategory
in class SVMDecider
- Parameters:
dDoc
- The document to classify.
- Returns:
- A
Decision
upon the classification of the given document.