com.raritantechnologies.concept.classifier.trainable
Interface ITrainableDocumentMatcher

All Superinterfaces:
IConfigurable
All Known Implementing Classes:
WordmapDocumentMatcher

public interface ITrainableDocumentMatcher
extends IConfigurable

Base interface for Classifier that use training sets to build a document matching knowledge base.


Method Summary
 void addTrainingSet(TrainingDocumentSet trainingSet, RaritanPageContext pContext)
          Add a training set to the document matcher.
 DocumentMatchBean[] classify(Document document, RaritanPageContext pContext)
          Classsifies a Document by returning 0 or more DocumentMatchBean objects.
 java.lang.String getName()
           
 java.lang.String getType()
           
 boolean isTrained()
          return true if the Classifier is ready to accept match requests.
 void setName(java.lang.String name)
          set the name of this matcher.
 
Methods inherited from interface com.raritantechnologies.searchApp.IConfigurable
initialize
 

Method Detail

setName

public void setName(java.lang.String name)
set the name of this matcher.


getName

public java.lang.String getName()

getType

public java.lang.String getType()

addTrainingSet

public void addTrainingSet(TrainingDocumentSet trainingSet,
                           RaritanPageContext pContext)
Add a training set to the document matcher.


isTrained

public boolean isTrained()
return true if the Classifier is ready to accept match requests.


classify

public DocumentMatchBean[] classify(Document document,
                                    RaritanPageContext pContext)
Classsifies a Document by returning 0 or more DocumentMatchBean objects.