|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.swing.calculator.analysis.FrequencyAnalysisRunnerBase edu.northwestern.at.wordhoard.swing.calculator.analysis.CollocateFrequencies edu.northwestern.at.wordhoard.swing.calculator.analysis.FindCollocates
public class FindCollocates
Compares a single word form's frequency in a specified analysis text.
Field Summary | |
---|---|
protected static int |
ANALYSISCOUNTCOLUMN
|
protected static int |
DICECOLUMN
|
protected static int |
LOGLIKECOLUMN
|
protected static int |
PHISQUAREDCOLUMN
|
protected static int |
SCPCOLUMN
|
protected static int |
SICOLUMN
|
protected static int |
SPANCOUNTCOLUMN
|
protected static int |
TEXTCOLUMN
Output column indices. |
protected static int |
WORDCLASSCOLUMN
|
Constructor Summary | |
---|---|
FindCollocates()
Create a single word form frequency profile object. |
Method Summary | |
---|---|
boolean |
areResultOptionsAvailable()
Are result options available? |
protected void |
doFreq(java.lang.String collocate,
int analysisCount,
int analysisTotalCount,
int refCount,
int refTotalCount,
WordHoardSortedTableModel model)
Perform frequency comparison of analysis and reference works for a word. |
protected ResultsPanel |
generateResults(WordHoardSortedTableModel model,
java.lang.String maxLabel,
int spanCount,
int totalSpanCount,
int refDistinctCount,
int refTotalCount)
Displays results of frequency analysis in a sorted table. |
ResultsPanel |
getCloud()
Show tag cloud of association measure values. |
ResultsPanel |
getContext(javax.swing.JFrame parentWindow,
ProgressReporter progressReporter)
Generate context results for selected collocate. |
LabeledColumn |
getResultOptions()
Return result options. |
boolean |
isCloudAvailable()
Is cloud output available? |
boolean |
isContextAvailable()
Is context output available? |
protected void |
openWorkPartForContext(XTable table,
int clickedRow)
Open work part for selected collocate context. |
void |
runAnalysis(javax.swing.JFrame parentWindow,
ProgressReporter progressReporter)
Run an analysis. |
Methods inherited from class edu.northwestern.at.wordhoard.swing.calculator.analysis.CollocateFrequencies |
---|
generateResults, getCollocateCounts |
Methods inherited from class edu.northwestern.at.wordhoard.swing.calculator.analysis.FrequencyAnalysisRunnerBase |
---|
closeProgressReporter, createCloudAssociationMeasuresComboBox, createCompressValueRangeInTagCloudsCheckBox, generateResults, getAnalysisPercentColumnName, getChart, getCloud, getColTitleWordFormString, getDoubleFormat, getPercentReportMethodFormat, getReferencePercentColumnName, getResults, getTableFontSize, getTitle, handleTableSelectionChange, isCancelled, isChartAvailable, isFilterAvailable, saveChart, setContextButton, showDialog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.northwestern.at.wordhoard.swing.calculator.analysis.AnalysisRunner |
---|
getChart, getResults, handleTableSelectionChange, isChartAvailable, isFilterAvailable, saveChart, setContextButton, showDialog |
Field Detail |
---|
protected static final int TEXTCOLUMN
protected static final int WORDCLASSCOLUMN
protected static final int SPANCOUNTCOLUMN
protected static final int ANALYSISCOUNTCOLUMN
protected static final int DICECOLUMN
protected static final int LOGLIKECOLUMN
protected static final int PHISQUAREDCOLUMN
protected static final int SICOLUMN
protected static final int SCPCOLUMN
Constructor Detail |
---|
public FindCollocates()
Method Detail |
---|
public void runAnalysis(javax.swing.JFrame parentWindow, ProgressReporter progressReporter)
runAnalysis
in interface AnalysisRunner
runAnalysis
in class CollocateFrequencies
parentWindow
- Parent window for display.progressReporter
- Progress reporter. May be null. protected void doFreq(java.lang.String collocate, int analysisCount, int analysisTotalCount, int refCount, int refTotalCount, WordHoardSortedTableModel model)
collocate
- The collocate to analyze.analysisCount
- Count of collocate in analysis text.analysisTotalCount
- Total number of words in analysis text.refCount
- Count of collocate in reference text.refTotalCount
- Total number of words in reference text.model
- Table model in which to store results. protected ResultsPanel generateResults(WordHoardSortedTableModel model, java.lang.String maxLabel, int spanCount, int totalSpanCount, int refDistinctCount, int refTotalCount)
model
- Table model holding data to display.maxLabel
- Maximum width value for first table
column.spanCount
- # of times word to collocate occurs
in span.totalSpanCount
- # of words in collocation span.
Includes count of word being collocated.refDistinctCount
- # of distinct words in analysis text.refTotalCount
- # of words in analysis text.
public boolean isContextAvailable()
isContextAvailable
in interface AnalysisRunner
isContextAvailable
in class FrequencyAnalysisRunnerBase
public ResultsPanel getContext(javax.swing.JFrame parentWindow, ProgressReporter progressReporter)
getContext
in interface AnalysisRunner
getContext
in class FrequencyAnalysisRunnerBase
parentWindow
- Parent window for display.progressReporter
- Progress reporter. May be null.
protected void openWorkPartForContext(XTable table, int clickedRow)
table
- The table holding context text.clickedRow
- The table row for which the corresponding
work part is desired. public boolean areResultOptionsAvailable()
areResultOptionsAvailable
in interface AnalysisRunner
areResultOptionsAvailable
in class FrequencyAnalysisRunnerBase
public LabeledColumn getResultOptions()
getResultOptions
in interface AnalysisRunner
getResultOptions
in class FrequencyAnalysisRunnerBase
public boolean isCloudAvailable()
isCloudAvailable
in interface AnalysisRunner
isCloudAvailable
in class FrequencyAnalysisRunnerBase
public ResultsPanel getCloud()
getCloud
in interface AnalysisRunner
getCloud
in class FrequencyAnalysisRunnerBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |