com.raritantechnologies.clearforest
Class ClearForestTermExtractor

java.lang.Object
  extended bycom.raritantechnologies.clearforest.ClearForestTermExtractor
All Implemented Interfaces:
IConfigurable, ITermExtractor

public class ClearForestTermExtractor
extends java.lang.Object
implements ITermExtractor

Term Extractor that uses Clear Forest web service. Extracts entities and entity fact relationships from unstructured text using ClearForest entity extractor.

XML Configuration Template:
  <TermExtractor class="com.raritantechnologies.clearforest.ClearForestTermExtractor" >

    <ClearForestFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter" ]" >

    </ClearForestFilter>

    <EntityMap>
      <Entity name="[entity name ]" 
                 baseURL="[ the URL ]" 
                 param="[ name of entity parameter ]" 
                 class="[ entity type ]"
                 matchPartialPhrase="true|false" />
    </EntityMap>

    <ClearForestTagsProcessor>

    </ClearForestTagsProcessor>

    <!-- One or more Fact-Relationship Extractors -->
    <FactRelationExtractor class=[ class of IFactRelationshipExtractor ]" >

    </FactRelationExtractor>

  </TermExtractor>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
ClearForestTermExtractor()
           
 
Method Summary
static void addTagger(java.lang.String firstWord, java.util.Map termMap, AttributeWordsTagger tagger)
           
 java.util.Map extractTerms(java.lang.String sessionID, java.lang.String inputString)
          inputString can be either a per-tagged document or a tagged document
static java.lang.String getFirstWord(java.lang.String entityValue)
           
 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
 

Constructor Detail

ClearForestTermExtractor

public ClearForestTermExtractor()
Method Detail

extractTerms

public java.util.Map extractTerms(java.lang.String sessionID,
                                  java.lang.String inputString)
inputString can be either a per-tagged document or a tagged document

Specified by:
extractTerms in interface ITermExtractor

addTagger

public static void addTagger(java.lang.String firstWord,
                             java.util.Map termMap,
                             AttributeWordsTagger tagger)

getFirstWord

public static java.lang.String getFirstWord(java.lang.String entityValue)

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