com.raritantechnologies.uima
Class UIMATermExtractor
java.lang.Object
com.raritantechnologies.uima.UIMATermExtractor
- All Implemented Interfaces:
- IConfigurable, ITermExtractor
- public class UIMATermExtractor
- extends java.lang.Object
- implements ITermExtractor
Term Extractor that uses a UIMA Analysis Engine to extract a set of terms from some
document text. The UIMATermExtractor configuration points to a UIMA Text Analysis Engine (TAE)
Configuration XML file.
XML Configuration Template:
<TermExtractor class="com.raritantechnologies.uima.UIMATermExtractor"
taeDescriptor="[ file name of UIMA Text Analysis Engine Descriptor XML ]"
resultField="[ fieldID that the hyperlink renderer will use to get search term ]"
termName="[ optional name for term (if not using hyperlink renderer) ]" >
<HyperlinkRenderer class="[ class of com.raritantechnologies.searchApp.taglibrary.IResultRenderer ]" >
&l;/TermExtractor>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
|
Method Summary |
java.util.Map |
extractTerms(java.lang.String sessionID,
java.lang.String fromString)
returns a map of terms - key is term, value is a AttributeWordsTagger or Attribute string |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UIMATermExtractor
public UIMATermExtractor()
extractTerms
public java.util.Map extractTerms(java.lang.String sessionID,
java.lang.String fromString)
- returns a map of terms - key is term, value is a AttributeWordsTagger or Attribute string
- Specified by:
extractTerms in interface ITermExtractor
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