at.ofai.gate.localner
Class OFAILocalNER

java.lang.Object
  extended by gate.util.AbstractFeatureBearer
      extended by gate.creole.AbstractResource
          extended by gate.creole.AbstractProcessingResource
              extended by gate.creole.AbstractLanguageAnalyser
                  extended by at.ofai.gate.localner.OFAILocalNER
All Implemented Interfaces:
ANNIEConstants, ControllerAwarePR, Executable, LanguageAnalyser, ProcessingResource, Resource, FeatureBearer, NameBearer, Serializable

public class OFAILocalNER
extends AbstractLanguageAnalyser
implements ControllerAwarePR

This is .. explain!

Author:
Johann Petrak
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gate.creole.AbstractProcessingResource
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener
 
Field Summary
protected  String annotationSetName
           
protected  String annotationType
           
protected  String baseURI
           
protected  String docIdAnnSet
           
protected  String docIdAnnType
           
protected  String docIdFeature
           
protected  Boolean ignoreCase
           
protected  Integer maxResults
           
protected  URL queryFileURL
           
protected  String queryString
           
protected  String sesameRepositoryID
           
protected  URL sesameServerURL
           
protected  Boolean wholeWordsOnly
           
 
Fields inherited from class gate.creole.AbstractLanguageAnalyser
corpus, document
 
Fields inherited from class gate.creole.AbstractProcessingResource
interrupted
 
Fields inherited from class gate.creole.AbstractResource
name
 
Fields inherited from class gate.util.AbstractFeatureBearer
features
 
Fields inherited from interface gate.creole.ANNIEConstants
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, PR_NAMES, 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 Summary
OFAILocalNER()
          Build a gazetter using the default lists from the gate resources
 
Method Summary
 void controllerExecutionAborted(Controller c, Throwable t)
           
 void controllerExecutionFinished(Controller c)
           
 void controllerExecutionStarted(Controller c)
           
 void execute()
          This method runs the gazetteer.
 String getAnnotationSetName()
           
 String getAnnotationType()
           
 String getBaseURI()
           
 String getDocIdAnnSet()
           
 String getDocIdAnnType()
           
 String getDocIdFeature()
           
 Boolean getIgnoreCase()
           
 Integer getMaxResults()
           
 URL getQueryFileURL()
           
 String getQueryString()
           
 String getSesameRepositoryID()
           
 URL getSesameServerURL()
           
 Boolean getWholeWordsOnly()
           
 Resource init()
           
 void setAnnotationSetName(String annotationSetName)
           
 void setAnnotationType(String annotationType)
           
 void setBaseURI(String baseURI)
           
 void setDocIdAnnSet(String docIdAnnSet)
           
 void setDocIdAnnType(String docIdAnnType)
           
 void setDocIdFeature(String docIdFeature)
           
 void setIgnoreCase(Boolean yesorno)
           
 void setMaxResults(Integer max)
           
 void setQueryFileURL(URL queryFileURL)
           
 void setQueryString(String queryString)
           
 void setSesameRepositoryID(String sesameRepositoryID)
           
 void setSesameServerURL(URL sesameServerURL)
           
 void setWholeWordsOnly(Boolean yesorno)
           
 void shutdown()
           
 void startup()
           
 
Methods inherited from class gate.creole.AbstractLanguageAnalyser
getCorpus, getDocument, setCorpus, setDocument
 
Methods inherited from class gate.creole.AbstractProcessingResource
addProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, interrupt, isInterrupted, reInit, removeProgressListener, removeStatusListener
 
Methods inherited from class gate.creole.AbstractResource
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners
 
Methods inherited from class gate.util.AbstractFeatureBearer
getFeatures, setFeatures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gate.ProcessingResource
reInit
 
Methods inherited from interface gate.Resource
cleanup, getParameterValue, setParameterValue, setParameterValues
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, setFeatures
 
Methods inherited from interface gate.util.NameBearer
getName, setName
 
Methods inherited from interface gate.Executable
interrupt, isInterrupted
 

Field Detail

queryFileURL

protected URL queryFileURL

queryString

protected String queryString

sesameServerURL

protected URL sesameServerURL

sesameRepositoryID

protected String sesameRepositoryID

annotationSetName

protected String annotationSetName

annotationType

protected String annotationType

docIdAnnSet

protected String docIdAnnSet

docIdAnnType

protected String docIdAnnType

docIdFeature

protected String docIdFeature

baseURI

protected String baseURI

wholeWordsOnly

protected Boolean wholeWordsOnly

ignoreCase

protected Boolean ignoreCase

maxResults

protected Integer maxResults
Constructor Detail

OFAILocalNER

public OFAILocalNER()
Build a gazetter using the default lists from the gate resources

Method Detail

setQueryFileURL

public void setQueryFileURL(URL queryFileURL)

getQueryFileURL

public URL getQueryFileURL()

setQueryString

public void setQueryString(String queryString)

getQueryString

public String getQueryString()

setSesameServerURL

public void setSesameServerURL(URL sesameServerURL)

getSesameServerURL

public URL getSesameServerURL()

setSesameRepositoryID

public void setSesameRepositoryID(String sesameRepositoryID)

getSesameRepositoryID

public String getSesameRepositoryID()

setAnnotationSetName

public void setAnnotationSetName(String annotationSetName)

getAnnotationSetName

public String getAnnotationSetName()

setAnnotationType

public void setAnnotationType(String annotationType)

getAnnotationType

public String getAnnotationType()

setDocIdAnnSet

public void setDocIdAnnSet(String docIdAnnSet)

getDocIdAnnSet

public String getDocIdAnnSet()

setDocIdAnnType

public void setDocIdAnnType(String docIdAnnType)

getDocIdAnnType

public String getDocIdAnnType()

setDocIdFeature

public void setDocIdFeature(String docIdFeature)

getDocIdFeature

public String getDocIdFeature()

setBaseURI

public void setBaseURI(String baseURI)

getBaseURI

public String getBaseURI()

setWholeWordsOnly

public void setWholeWordsOnly(Boolean yesorno)

getWholeWordsOnly

public Boolean getWholeWordsOnly()

setIgnoreCase

public void setIgnoreCase(Boolean yesorno)

getIgnoreCase

public Boolean getIgnoreCase()

setMaxResults

public void setMaxResults(Integer max)

getMaxResults

public Integer getMaxResults()

controllerExecutionStarted

public void controllerExecutionStarted(Controller c)
                                throws ExecutionException
Specified by:
controllerExecutionStarted in interface ControllerAwarePR
Throws:
ExecutionException

controllerExecutionFinished

public void controllerExecutionFinished(Controller c)
                                 throws ExecutionException
Specified by:
controllerExecutionFinished in interface ControllerAwarePR
Throws:
ExecutionException

controllerExecutionAborted

public void controllerExecutionAborted(Controller c,
                                       Throwable t)
                                throws ExecutionException
Specified by:
controllerExecutionAborted in interface ControllerAwarePR
Throws:
ExecutionException

startup

public void startup()
             throws ExecutionException
Throws:
ExecutionException

shutdown

public void shutdown()

init

public Resource init()
              throws ResourceInstantiationException
Specified by:
init in interface Resource
Overrides:
init in class AbstractProcessingResource
Throws:
ResourceInstantiationException

execute

public void execute()
             throws ExecutionException
This method runs the gazetteer.

Specified by:
execute in interface Executable
Overrides:
execute in class AbstractProcessingResource
Throws:
ExecutionException