com.raritantechnologies.concept.classifier.wordmap
Class WordmapDocumentMatcher

java.lang.Object
  extended bycom.raritantechnologies.concept.classifier.wordmap.WordmapDocumentMatcher
All Implemented Interfaces:
IConfigurable, ITrainableDocumentMatcher

public class WordmapDocumentMatcher
extends java.lang.Object
implements ITrainableDocumentMatcher

Uses a Wordmap Classifier to classify a document.


Constructor Summary
WordmapDocumentMatcher()
           
 
Method Summary
 boolean 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()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 boolean isTrained()
          return true if the DocumentMatcher is ready to accept match requests.
 void setName(java.lang.String name)
          set the name of this matcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordmapDocumentMatcher

public WordmapDocumentMatcher()
Method Detail

getType

public java.lang.String getType()
Specified by:
getType in interface ITrainableDocumentMatcher

addTrainingSet

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

Specified by:
addTrainingSet in interface ITrainableDocumentMatcher

classify

public DocumentMatchBean[] classify(Document document,
                                    RaritanPageContext pContext)
Description copied from interface: ITrainableDocumentMatcher
Classsifies a Document by returning 0 or more DocumentMatchBean objects.

Specified by:
classify in interface ITrainableDocumentMatcher

isTrained

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

Specified by:
isTrained in interface ITrainableDocumentMatcher

setName

public void setName(java.lang.String name)
Description copied from interface: ITrainableDocumentMatcher
set the name of this matcher.

Specified by:
setName in interface ITrainableDocumentMatcher

getName

public java.lang.String getName()
Specified by:
getName in interface ITrainableDocumentMatcher

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable