@CreoleResource(name="DBpediaTagger",
comment="Transforms DBpedia Spotlight response objects to GATE annotations.")
public class DBpediaTagger
extends gate.creole.AbstractLanguageAnalyser
implements gate.ProcessingResource
ANNOTATION_COREF_FEATURE_NAME, DATE_ANNOTATION_TYPE, DATE_POSTED_ANNOTATION_TYPE, DEFAULT_FILE, DOCUMENT_COREF_FEATURE_NAME, JOB_ID_ANNOTATION_TYPE, LOCATION_ANNOTATION_TYPE, LOOKUP_ANNOTATION_TYPE, LOOKUP_CLASS_FEATURE_NAME, LOOKUP_INSTANCE_FEATURE_NAME, LOOKUP_LANGUAGE_FEATURE_NAME, LOOKUP_MAJOR_TYPE_FEATURE_NAME, LOOKUP_MINOR_TYPE_FEATURE_NAME, LOOKUP_ONTOLOGY_FEATURE_NAME, MONEY_ANNOTATION_TYPE, ORGANIZATION_ANNOTATION_TYPE, PERSON_ANNOTATION_TYPE, PERSON_GENDER_FEATURE_NAME, PLUGIN_DIR, SENTENCE_ANNOTATION_TYPE, SPACE_TOKEN_ANNOTATION_TYPE, TOKEN_ANNOTATION_TYPE, TOKEN_CATEGORY_FEATURE_NAME, TOKEN_KIND_FEATURE_NAME, TOKEN_LENGTH_FEATURE_NAME, TOKEN_ORTH_FEATURE_NAME, TOKEN_STRING_FEATURE_NAME
Constructor and Description |
---|
DBpediaTagger() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
Double |
getConfidence() |
String |
getEndpoint() |
String |
getOutputAnnotationName() |
String |
getOutputASName() |
Integer |
getSupport() |
gate.Resource |
init() |
void |
reInit() |
void |
setConfidence(Double myConfidence) |
void |
setEndpoint(String myEndpoint) |
void |
setOutputAnnotationName(String myOutputAnnotationName) |
void |
setOutputASName(String myOutputASName) |
void |
setSupport(Integer mySupport) |
getCorpus, getDocument, setCorpus, setDocument
addProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, getRuntimeParameterValues, getRuntimeParameterValues, interrupt, isInterrupted, removeProgressListener, removeStatusListener
checkParameterValues, flushBeanInfoCache, forgetBeanInfo, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public final String getOutputAnnotationName()
public final void setOutputAnnotationName(String myOutputAnnotationName)
public final String getEndpoint()
public final void setEndpoint(String myEndpoint)
myEndpoint
- the endpoint to setpublic final Double getConfidence()
public final void setConfidence(Double myConfidence)
myConfidence
- the confidence to setpublic final Integer getSupport()
public final void setSupport(Integer mySupport)
mySupport
- the support to setpublic final String getOutputASName()
public final void setOutputASName(String myOutputASName)
myOutputASName
- the outputAS name to setpublic gate.Resource init() throws gate.creole.ResourceInstantiationException
init
in interface gate.Resource
init
in class gate.creole.AbstractProcessingResource
gate.creole.ResourceInstantiationException
public void reInit() throws gate.creole.ResourceInstantiationException
reInit
in interface gate.ProcessingResource
reInit
in class gate.creole.AbstractProcessingResource
gate.creole.ResourceInstantiationException
public void execute() throws gate.creole.ExecutionException
execute
in interface gate.Executable
execute
in class gate.creole.AbstractProcessingResource
gate.creole.ExecutionException