|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.demokritos.iit.jinsect.classification.Decider
public class Decider
This class gathers data for a set of categories and can then perform classification over documents. The category data can be updated at any point in time.
| Field Summary | |
|---|---|
protected INSECTDB |
Repository
The INSECTDB repository of data used. |
| Constructor Summary | |
|---|---|
Decider(INSECTDB dbRepository)
Creates a new instance of Decider, given a 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. |
void |
addEvidence(SimpleTextDocument dDoc,
java.lang.String sFinalCategory)
Updates the evidence of the determiner with new data, in order to correct erroneous decisions. |
protected java.lang.String |
filterDataString(java.lang.String sStr,
SimpleTextCategory cCat)
Filters a data string to keep only words concerning a single category |
java.lang.String[] |
getAvailableCategories()
Returns an array of the available category names from the repository used in the object. |
void |
reset()
Resets categories and all other data of the Decider. |
void |
setRepository(INSECTDB dbRepository)
Sets the repository of the Decider data |
protected Decision |
suggestCategory(SimpleTextDocument dDoc)
Suggests a category for the given document. |
Decision |
suggestCategory(java.lang.String sFilename)
Suggests a category for a given file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected INSECTDB Repository
INSECTDB repository of data used.
| Constructor Detail |
|---|
public Decider(INSECTDB dbRepository)
dbRepository - The repository to use.| Method Detail |
|---|
public void setRepository(INSECTDB dbRepository)
dbRepository - The repository to use.public Decision suggestCategory(java.lang.String sFilename)
sFilename - The path to the file under review.
Decision indicating the suggestion of category for the given file.protected Decision suggestCategory(SimpleTextDocument dDoc)
dDoc - The document the category of which is to be determined.
Decision indicating the suggestion of category for the given file.
protected java.lang.String filterDataString(java.lang.String sStr,
SimpleTextCategory cCat)
sStr - The string to filter.cCat - The category to use for filtering.
public void addEvidence(SimpleTextDocument dDoc,
java.lang.String sFinalCategory)
dDoc - The document.sFinalCategory - The correct category for the selected document.
public void addEvidence(Decision dPrv,
java.lang.String sFinalCategory)
dPrv - The previous decision info.sFinalCategory - The correct category for the selected document.public java.lang.String[] getAvailableCategories()
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||