public abstract class SpotlightCommon extends AbstractNER
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.configuration.XMLConfiguration |
CFG |
static org.apache.log4j.Logger |
LOG |
protected String |
SPOTLIGHT_CONFIDENCE |
protected String |
SPOTLIGHT_SPARQL |
protected String |
SPOTLIGHT_SUPPORT |
protected String |
SPOTLIGHT_TYPES |
protected String |
SPOTLIGHT_URL |
entityClasses, entityList, input
cdl, cfgManager, versions
Constructor and Description |
---|
SpotlightCommon(Locale lang) |
Modifier and Type | Method and Description |
---|---|
List<Entity> |
retrieve(String input)
Retrieves Entity objects from the give input String with sentences as plain text.
|
protected String |
spotlight(String spotlightTag)
Gets the entity class for a spotlight entity type/class.
|
_retrieve, clean, getEntity, getResults, getSentences, mapTypeToSupportedType, run, setInput
getToolName, getToolVersion, getToolVersion, setCountDownLatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getToolName, getToolVersion, setCountDownLatch
public static org.apache.log4j.Logger LOG
protected final org.apache.commons.configuration.XMLConfiguration CFG
protected String SPOTLIGHT_URL
protected String SPOTLIGHT_CONFIDENCE
protected String SPOTLIGHT_SUPPORT
protected String SPOTLIGHT_TYPES
protected String SPOTLIGHT_SPARQL
public SpotlightCommon(Locale lang)
public List<Entity> retrieve(String input)
INER
retrieve
in interface INER
retrieve
in class AbstractNER
input
- sentences as plain textCopyright © 2024. All rights reserved.