com.raritantechnologies.inxight
Class InxightTermExtractor
java.lang.Object
com.raritantechnologies.inxight.InxightTermExtractor
- All Implemented Interfaces:
- IConfigurable, ITermExtractor
- public class InxightTermExtractor
- extends java.lang.Object
- implements ITermExtractor
Uses the Insight ThingFinder to extract terms from a document.
XML Configuration Template:
<TermExtractor class="com.raritantechnologies.inxight.InxightTermExtractor"
analysisServerHost="[ host name of SmartDiscovery Analysis server ]"
analysisServerPort="[ port that SmartDiscovery Analysis server is listening on ]" >
<EntityMap>
<Entity name="[ Inxight entity-type ]"
baseURL="[ the URL for hyperlink tagging ]"
param="[ name of entity parameter to be added to the URL ]"
class="[ RTI entity type ]"
matchPartialPhrase="true|false" />
</EntityMap>
</TermExtractor>
|
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 fromString)
returns a map of terms - key is term, value is a AttributeWordsTagger or Attribute string |
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 |
InxightTermExtractor
public InxightTermExtractor()
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
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