com.raritantechnologies.utils.tagging
Class TermExtractorTagger
java.lang.Object
com.raritantechnologies.utils.tagging.TermExtractorTagger
- All Implemented Interfaces:
- IConfigurable, ITagger
- Direct Known Subclasses:
- ClassifierTermExtractorTagger
- public class TermExtractorTagger
- extends java.lang.Object
- implements ITagger
Tags a document using an ITermExtractor and an ITagWriter.
XML Configuration Template:
<Tagger class="com.raritantechnologies.utils.tagging.TermExtractorTagger"
defaultAttribute="[ default tag attribute name ]"
makeThreadSafe="[true(default)|false - if true tag writer is session bound ]"
tagWithinATags="true|false(default)"
caseSensitive="true|false(default)" >
<TermExtractor class="[ class of com.raritantechologies.utils.tagging.ITermExtractor ]" >
</TermExtractor>
<TagWriter class="[ class of com.raritantechnologies.utils.tagging.ITagWriter ]" >
</TagWriter>
</Tagger>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tagWithinATags
protected boolean tagWithinATags
caseSensitive
protected boolean caseSensitive
TermExtractorTagger
public TermExtractorTagger()
tagWords
public java.lang.String tagWords(java.lang.String sessionID,
java.lang.String termSource,
java.lang.String inputString)
tagWords
public java.lang.String tagWords(java.lang.String sessionID,
java.lang.String inputString)
- Specified by:
tagWords in interface ITagger
tagWords
protected java.lang.String tagWords(java.lang.String sessionID,
java.util.Map wordMap,
java.lang.String inputString)
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
setAttriute
public void setAttriute(java.lang.String attribute)
getAttriute
public java.lang.String getAttriute()
setTermExtractor
public void setTermExtractor(ITermExtractor termExtractor)
getTermExtractor
public ITermExtractor getTermExtractor()
setTagWriter
public void setTagWriter(ITagWriter tagWriter)
getTagWriter
public ITagWriter getTagWriter()
getConfigurationXML
public java.lang.String getConfigurationXML()