@CreoleResource(name="ANNIE Nominal Coreferencer", comment="Nominal Coreference resolution component", helpURL="http://gate.ac.uk/userguide/sec:annie:pronom-coref", icon="nominal-coreferencer") public class NominalCoref extends AbstractCoreferencer implements ProcessingResource, ANNIEConstants
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener
Modifier and Type | Field and Description |
---|---|
static String |
COREF_ANN_SET_PARAMETER_NAME |
static String |
COREF_DOCUMENT_PARAMETER_NAME |
COREF_ANTECEDENT_FEATURE_NAME, COREF_TYPE_FEATURE_NAME, coreferenceType
corpus, document
interrupted
name
features
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 |
---|
NominalCoref()
---
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
This method runs the coreferencer.
|
String |
getAnnotationSetName()
---
|
Map<Annotation,Annotation> |
getResolvedAnaphora()
---
|
Resource |
init()
Initialise this resource, and return it.
|
void |
reInit()
Reinitialises the processing resource.
|
void |
setAnnotationSetName(String annotationSetName)
---
|
void |
setDocument(Document newDocument)
Set the document to run on.
|
generateCorefChains
getCorpus, getDocument, setCorpus
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
getFeatures, setFeatures
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cleanup, getParameterValue, setParameterValue, setParameterValues
getFeatures, setFeatures
getName, setName
interrupt, isInterrupted
public static final String COREF_DOCUMENT_PARAMETER_NAME
public static final String COREF_ANN_SET_PARAMETER_NAME
public NominalCoref()
public Resource init() throws ResourceInstantiationException
init
in interface Resource
init
in class AbstractCoreferencer
ResourceInstantiationException
public void reInit() throws ResourceInstantiationException
reInit
in interface ProcessingResource
reInit
in class AbstractCoreferencer
ResourceInstantiationException
public void setDocument(Document newDocument)
setDocument
in interface LanguageAnalyser
setDocument
in class AbstractCoreferencer
@RunTime @Optional @CreoleParameter(comment="The annotation set to be used for the generated annotations") public void setAnnotationSetName(String annotationSetName)
setAnnotationSetName
in class AbstractCoreferencer
public String getAnnotationSetName()
getAnnotationSetName
in class AbstractCoreferencer
public void execute() throws ExecutionException
execute
in interface Executable
execute
in class AbstractProcessingResource
ExecutionException
public Map<Annotation,Annotation> getResolvedAnaphora()