|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.output.labeling.AbstractLabeler
at.tuwien.ifs.somtoolbox.output.labeling.LagusKeywordLabeler
public class LagusKeywordLabeler
Implements the Keyword selection
labelling method, as described in Lagus, K. and Kaski,
S.:Keyword selection method for characterizing text document maps. Proceedings of ICANN99, 9th International
Conference on Artificial Neural Networks, volume 1, pages 371-376, IEEE, London.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface at.tuwien.ifs.somtoolbox.apps.SOMToolboxApp |
---|
SOMToolboxApp.Type |
Field Summary | |
---|---|
static SOMToolboxApp.Type |
APPLICATION_TYPE
|
static String |
DESCRIPTION
|
private int |
innerRadius
|
static String |
LONG_DESCRIPTION
|
static com.martiansoftware.jsap.Parameter[] |
OPTIONS
|
private int |
outerRadius
|
(package private) String |
path
|
Fields inherited from interface at.tuwien.ifs.somtoolbox.apps.SOMToolboxApp |
---|
DEV_BY_STRING, HOMEPAGE, INFO, INFO_TEXT, LICENSE_TEXT, REQUIRED_MEMBERS, TYPE_GROUPED_COMPARATOR |
Constructor Summary | |
---|---|
LagusKeywordLabeler()
Constructor in order to initialize without an additional parameter |
|
LagusKeywordLabeler(String path)
|
|
LagusKeywordLabeler(String path,
int innerRadius,
int outerRadius)
Constructor in order to initialize with path and radiuses |
Method Summary | |
---|---|
private double |
calcUnitDistance(Unit start,
Unit end)
Calculates the distance between Units |
private UnitWordsMap |
generateUnitWordsMap(Unit[] units,
GrowingSOM gsom,
InputData data,
TemplateVector tv)
|
void |
label(GHSOM ghsom,
InputData data,
int num)
|
void |
label(GrowingSOM gsom,
InputData data,
int num)
Determines and adds labels to the units of a GrowingSOM (should be NetworkModel in the future). |
void |
label(GrowingSOM gsom,
InputData data,
int num,
boolean ignoreLabelsWithZero)
|
static void |
main(String[] args)
|
private void |
selectAreaLabels(Unit[] units,
UnitWordsMap uwm,
int num)
Only labels one unit per map area, dependent on A0 and A1 radius. |
private void |
selectLabelsG1(Unit[] units,
UnitWordsMap uwm,
int num)
Selects a number of n labels for each unit based on the proposed goodness G1 by Lagus |
private void |
selectLabelsG2(Unit[] units,
UnitWordsMap uwm)
Selects only one best label for units based on the proposed goodness G2 by Lagus |
Methods inherited from class at.tuwien.ifs.somtoolbox.output.labeling.AbstractLabeler |
---|
checkMaxDimensionality, instantiate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static SOMToolboxApp.Type APPLICATION_TYPE
public static String DESCRIPTION
public static String LONG_DESCRIPTION
public static final com.martiansoftware.jsap.Parameter[] OPTIONS
String path
private int innerRadius
private int outerRadius
Constructor Detail |
---|
public LagusKeywordLabeler()
public LagusKeywordLabeler(String path)
public LagusKeywordLabeler(String path, int innerRadius, int outerRadius)
Method Detail |
---|
public static void main(String[] args)
public void label(GHSOM ghsom, InputData data, int num)
label
in interface Labeler
public void label(GrowingSOM gsom, InputData data, int num)
Labeler
label
in interface Labeler
gsom
- The GrowingSOM to be labeled.data
- The data that is already mapped onto the GrowingSOMnum
- The number of labels per node.public void label(GrowingSOM gsom, InputData data, int num, boolean ignoreLabelsWithZero)
label
in interface Labeler
private UnitWordsMap generateUnitWordsMap(Unit[] units, GrowingSOM gsom, InputData data, TemplateVector tv)
private void selectAreaLabels(Unit[] units, UnitWordsMap uwm, int num)
units
- the units on the mapuwm
- the UnitWordsMap with the information about the frequencies of the word occurrences in the mapsnum
- the number of Labelsprivate double calcUnitDistance(Unit start, Unit end)
start
- start unitend
- end unit
private void selectLabelsG1(Unit[] units, UnitWordsMap uwm, int num)
units
- the units on the mapuwm
- the UnitWordsMap with the information about the frequencies of the word occurrences in the mapsnum
- the number of Labelsprivate void selectLabelsG2(Unit[] units, UnitWordsMap uwm)
units
- the units on the mapuwm
- the UnitWordsMap with the information about the frequencies of the word occurrences in the maps
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |