public class LagusKeywordLabeler extends AbstractLabeler implements Labeler, SOMToolboxApp
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. SOMToolboxApp.Type
Modifier and Type | Field and Description |
---|---|
static SOMToolboxApp.Type |
APPLICATION_TYPE |
static java.lang.String |
DESCRIPTION |
private int |
innerRadius |
static java.lang.String |
LONG_DESCRIPTION |
static com.martiansoftware.jsap.Parameter[] |
OPTIONS |
private int |
outerRadius |
(package private) java.lang.String |
path |
DEV_BY_STRING, HOMEPAGE, INFO, INFO_TEXT, LICENSE_TEXT, REQUIRED_MEMBERS, TYPE_GROUPED_COMPARATOR
Constructor and Description |
---|
LagusKeywordLabeler()
Constructor in order to initialize without an additional parameter
|
LagusKeywordLabeler(java.lang.String path) |
LagusKeywordLabeler(java.lang.String path,
int innerRadius,
int outerRadius)
Constructor in order to initialize with path and radiuses
|
Modifier and Type | Method and Description |
---|---|
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(java.lang.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
|
checkMaxDimensionality, instantiate
public static SOMToolboxApp.Type APPLICATION_TYPE
public static java.lang.String DESCRIPTION
public static java.lang.String LONG_DESCRIPTION
public static final com.martiansoftware.jsap.Parameter[] OPTIONS
java.lang.String path
private int innerRadius
private int outerRadius
public LagusKeywordLabeler()
public LagusKeywordLabeler(java.lang.String path)
public LagusKeywordLabeler(java.lang.String path, int innerRadius, int outerRadius)
public static void main(java.lang.String[] args)
public void label(GrowingSOM gsom, InputData data, int num)
Labeler
public void label(GrowingSOM gsom, InputData data, int num, boolean ignoreLabelsWithZero)
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 unitprivate 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