textclassifier.ARCBC
Class ArcBC

java.lang.Object
  extended by textclassifier.ARCBC.ArcBC

public class ArcBC
extends java.lang.Object

Class that manages all important algorithms necessary for association rule based classification (their implmentation are in ArcBCminer, ArcBCclassifier and ArcBCdiscretizer.


Constructor Summary
ArcBC(documentConnecterBC dbc, MySQLAccess dba)
          Constructor of a classifier (class ArcBC)
 
Method Summary
 int classifyDocument(java.util.ArrayList<AssociationRule> ARC, Document D, double conf_thresh)
          Classification phase of the method - using association rules
 java.util.ArrayList<Document> getAllDocuments()
          Returns the set of all documents (set of relational table records) used for classification.
 java.util.ArrayList<AssociationRule> train(float supp, float conf)
          Training phase of classification - mining assocciation rules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcBC

public ArcBC(documentConnecterBC dbc,
             MySQLAccess dba)
Constructor of a classifier (class ArcBC)

Parameters:
dba - instance of MySQLaccess class. Contains information about connection to the MySQL database.
dbc - instance of documentConnecterBC class. Contains information about how to get information about input documents.
Method Detail

train

public java.util.ArrayList<AssociationRule> train(float supp,
                                                  float conf)
Training phase of classification - mining assocciation rules

Parameters:
supp - value of minimum support
conf - value of minimum confidence
Returns:
the list of association rules

classifyDocument

public int classifyDocument(java.util.ArrayList<AssociationRule> ARC,
                            Document D,
                            double conf_thresh)
Classification phase of the method - using association rules

Parameters:
ARC - list of association rules from the training phase
D - a document to be classified
conf_thresh - minimum confidence threshold
Returns:
returns value 1 if the document is classified to at least one class, otherwise -1

getAllDocuments

public java.util.ArrayList<Document> getAllDocuments()
Returns the set of all documents (set of relational table records) used for classification.

Returns:
a set of documents