|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractProcessingResource
gate.creole.AbstractLanguageAnalyser
gate.qa.QualityAssurancePR
@CreoleResource(name="Quality Assurance PR", comment="The Quality Assurance PR provides a functionality of the Corpus QA Tool in GATE Developer") public class QualityAssurancePR
This PR has the same functionality as the Quality Assurance GUI. If added to a corpus pipeline, it executes on the very last document - making sure that the statistics are calculated on the entire corpus. User can provide various run-time parameters to configure the PR. One of the parameters is the output directory where the results are stored. The PR produces two main files - one for the corpus statistics and one for the documents statistics. In case of the latter, each document in the output file is linked with the output of annotationDiff utility containing annotation by annotation comparison for every annotation type specified in annotationTypes parameter.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class gate.creole.AbstractProcessingResource |
---|
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener |
Field Summary | |
---|---|
protected NumberFormat |
f
number formatter |
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 |
Constructor Summary | |
---|---|
QualityAssurancePR()
|
Method Summary | |
---|---|
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 |
Methods inherited from class gate.creole.AbstractLanguageAnalyser |
---|
getCorpus, getDocument, setCorpus, setDocument |
Methods inherited from class gate.creole.AbstractProcessingResource |
---|
addProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, getRuntimeParameterValues, getRuntimeParameterValues, interrupt, isInterrupted, reInit, removeProgressListener, removeStatusListener |
Methods inherited from class gate.creole.AbstractResource |
---|
checkParameterValues, flushBeanInfoCache, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, 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 |
---|
protected NumberFormat f
Constructor Detail |
---|
public QualityAssurancePR()
Method Detail |
---|
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)
keyASName
- public String getResponseASName()
@Optional @RunTime @CreoleParameter(defaultValue="") public void setResponseASName(String responseASName)
responseASName
- public List<String> getAnnotationTypes()
@RunTime @CreoleParameter public void setAnnotationTypes(List<String> annotationTypes)
annotationTypes
- public List<String> getFeatureNames()
@RunTime @Optional @CreoleParameter public void setFeatureNames(List<String> featureNames)
featureNames
- public Measure getMeasure()
@RunTime @CreoleParameter public void setMeasure(Measure measure)
measure
- public URL getOutputFolderUrl()
@RunTime @CreoleParameter(suffixes="html") public void setOutputFolderUrl(URL outputFolderUrl)
outputFolderUrl
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |