textclassifier.ARCBC
Class ArcBCclassifier

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

public class ArcBCclassifier
extends java.lang.Object

Class that contains several methods necessary for classification phase of the method.


Constructor Summary
ArcBCclassifier()
           
 
Method Summary
 int classifyDocument(java.util.ArrayList<AssociationRule> ARC, Document D, double conf_tresh)
          Classifies document represented by object Document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcBCclassifier

public ArcBCclassifier()
Method Detail

classifyDocument

public int classifyDocument(java.util.ArrayList<AssociationRule> ARC,
                            Document D,
                            double conf_tresh)
Classifies document represented by object Document

Parameters:
ARC - set of assocation rules obtained by training phase
D - document (a row for the input table) to be classified
conf_tresh - minimum confidence threshold
Returns:
if there is at least one category for document D, returns 1, otherwise -1