@CreoleResource(name="Quality Assurance PR", comment="The Quality Assurance PR provides a functionality of the Corpus QA Tool in GATE Developer") public class QualityAssurancePR extends AbstractLanguageAnalyser implements ProcessingResource
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener
Modifier and Type | Field and Description |
---|---|
protected NumberFormat |
f
number formatter
|
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 |
---|
QualityAssurancePR() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
The execute method
|
List<String> |
getAnnotationTypes()
Annotation types for which the stats should be calculated
|
protected File |
getDiffResultsExportFile(String documentName)
Generates a file name to export annotation diff results to.
|
List<String> |
getFeatureNames()
Features names for which the stats should be calculated
|
String |
getKeyASName()
Returns the key annotation set name provided by the user
|
Measure |
getMeasure()
Measure to use for stats calculation
|
URL |
getOutputFolderUrl()
URL of the folder to store output files into
|
String |
getResponseASName()
Returns the response annotation set name provided by the user
|
Resource |
init()
Initialise this resource, and return it.
|
void |
setAnnotationTypes(List<String> annotationTypes)
Annotation types for which the stats should be calculated
|
void |
setFeatureNames(List<String> featureNames)
Features names for which the stats should be calculated
|
void |
setKeyASName(String keyASName)
Sets the key annotation set name
|
void |
setMeasure(Measure measure)
Measure to use for stats calculation
|
void |
setOutputFolderUrl(URL outputFolderUrl)
URL of the folder to store output files into
|
void |
setResponseASName(String responseASName)
sets the response annotation set name
|
getCorpus, getDocument, setCorpus, setDocument
addProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, getRuntimeParameterValues, getRuntimeParameterValues, interrupt, isInterrupted, reInit, removeProgressListener, removeStatusListener
checkParameterValues, flushBeanInfoCache, 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
reInit
cleanup, getParameterValue, setParameterValue, setParameterValues
getFeatures, setFeatures
getName, setName
interrupt, isInterrupted
protected NumberFormat f
public Resource init() throws ResourceInstantiationException
init
in interface Resource
init
in class AbstractProcessingResource
ResourceInstantiationException
public void execute() throws ExecutionException
execute
in interface Executable
execute
in class AbstractProcessingResource
ExecutionException
protected File getDiffResultsExportFile(String documentName)
public String getKeyASName()
@RunTime @Optional @CreoleParameter(defaultValue="Key") public void setKeyASName(String keyASName)
public String getResponseASName()
@Optional @RunTime @CreoleParameter(defaultValue="") public void setResponseASName(String responseASName)
public List<String> getAnnotationTypes()
@RunTime @CreoleParameter public void setAnnotationTypes(List<String> annotationTypes)
public List<String> getFeatureNames()
@RunTime @Optional @CreoleParameter public void setFeatureNames(List<String> featureNames)
public Measure getMeasure()
@RunTime @CreoleParameter public void setMeasure(Measure measure)
public URL getOutputFolderUrl()
@RunTime @CreoleParameter(suffixes="html") public void setOutputFolderUrl(URL outputFolderUrl)