|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gate.creole.AbstractVisualResource
gate.gui.CorpusQualityAssurance
@CreoleResource(name="Corpus Quality Assurance",
guiType=LARGE,
resourceDisplayed="gate.Corpus",
mainViewer=false,
helpURL="http://gate.ac.uk/userguide/sec:eval:corpusqualityassurance")
public class CorpusQualityAssuranceQuality assurance corpus view. Compare two sets of annotations with optionally their features globally for each annotation and for each document inside a corpus with different measures notably precision, recall and F1-score.
| Nested Class Summary | |
|---|---|
protected class |
CorpusQualityAssurance.CompareAction
Update document table. |
protected class |
CorpusQualityAssurance.ExportToHtmlAction
|
protected static class |
CorpusQualityAssurance.ExtendedListModel
|
protected class |
CorpusQualityAssurance.HelpAction
|
protected class |
CorpusQualityAssurance.SetBdmFileAction
|
protected static class |
CorpusQualityAssurance.ToggleSelectionABModel
Add a suffix A and B for the first and second selected item. |
protected static class |
CorpusQualityAssurance.ToggleSelectionModel
|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Fields inherited from class gate.creole.AbstractVisualResource |
|---|
features, handle |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CorpusQualityAssurance()
|
|
| Method Summary | |
|---|---|
void |
cleanup()
Does nothing now, but meant to clear all internal data |
protected void |
compareAnnotation()
|
protected String |
createToolTipFromColumnName(String columnName)
Create a table header tool tips from the column name. |
void |
documentAdded(CorpusEvent e)
Called when a document has been added |
void |
documentRemoved(CorpusEvent e)
Called when a document has been removed |
Resource |
init()
Initialise this resource, and return it. |
protected void |
initGuiComponents()
|
protected void |
initListeners()
|
protected void |
initLocalData()
|
protected void |
printSummary(Object measureObject,
DefaultTableModel tableModel,
int columnGroupSize,
int insertionRow,
Object[] measures)
|
protected void |
readSetsTypesFeatures(int documentStart)
Update set lists. |
void |
setTarget(Object target)
Called by the GUI when this viewer/editor has to initialise itself for a specific object. |
protected void |
updateSetList()
|
| Methods inherited from class gate.creole.AbstractVisualResource |
|---|
getFeatures, getParameterValue, setFeatures, setHandle, setParameterValue, setParameterValues |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gate.util.NameBearer |
|---|
getName, setName |
| Field Detail |
|---|
protected Corpus corpus
protected boolean corpusChanged
protected TreeSet<String> types
protected final Map<String,TreeMap<String,TreeMap<String,TreeSet<String>>>> docsSetsTypesFeatures
protected ArrayList<HashMap<String,AnnotationDiffer>> differsByDocThenType
corpus
then contains (annotation type * AnnotationDiffer)
protected ArrayList<String> documentNames
protected String keySetName
protected String responseSetName
protected Object[] typesSelected
protected Object[] featuresSelected
protected Timer timer
protected TimerTask timerTask
protected Thread readSetsTypesFeaturesThread
protected int measuresType
protected static final int FSCORE_MEASURES
protected static final int CLASSIFICATION_MEASURES
protected Collator collator
protected Comparator<String> doubleComparator
protected Comparator<String> totalComparator
protected OptionsMap userConfig
protected URL bdmFileUrl
protected XJTable documentTable
protected DefaultTableModel documentTableModel
protected XJTable annotationTable
protected DefaultTableModel annotationTableModel
protected XJTable document2Table
protected DefaultTableModel document2TableModel
protected XJTable confusionTable
protected DefaultTableModel confusionTableModel
protected JTabbedPane tableTabbedPane
protected JList setList
protected JList typeList
protected JList featureList
protected JToggleButton optionsButton
protected JTabbedPane measureTabbedPane
protected JList measureList
protected JList measure2List
protected JCheckBox setCheck
protected JCheckBox typeCheck
protected JCheckBox featureCheck
protected JProgressBar progressBar
protected JCheckBox verboseOptionCheckBox
protected gate.gui.CorpusQualityAssurance.OpenDocumentAction openDocumentAction
protected gate.gui.CorpusQualityAssurance.OpenAnnotationDiffAction openAnnotationDiffAction
protected CorpusQualityAssurance.ExportToHtmlAction exportToHtmlAction
protected gate.gui.CorpusQualityAssurance.ReloadCacheAction reloadCacheAction
protected CorpusQualityAssurance.CompareAction compareAction
| Constructor Detail |
|---|
public CorpusQualityAssurance()
| Method Detail |
|---|
public Resource init()
AbstractVisualResource
init in interface Resourceinit in class AbstractVisualResourceprotected void initLocalData()
protected void initGuiComponents()
protected void initListeners()
protected String createToolTipFromColumnName(String columnName)
columnName - name used for creating the tooltip
public void cleanup()
AbstractVisualResource
cleanup in interface Resourcecleanup in class AbstractVisualResourcepublic void setTarget(Object target)
AbstractVisualResource
setTarget in interface VisualResourcesetTarget in class AbstractVisualResourcetarget - the object (be it a Resource,
DataStore or whatever) this viewer has to displaypublic void documentAdded(CorpusEvent e)
CorpusListener
documentAdded in interface CorpusListenerpublic void documentRemoved(CorpusEvent e)
CorpusListener
documentRemoved in interface CorpusListenerprotected void readSetsTypesFeatures(int documentStart)
documentStart - first document to read in the corpus,
the first document of the corpus is 0.protected void updateSetList()
protected void compareAnnotation()
protected void printSummary(Object measureObject,
DefaultTableModel tableModel,
int columnGroupSize,
int insertionRow,
Object[] measures)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||