Package org.aksw.palmetto.data
Class SegmentationDefinition
- java.lang.Object
-
- org.aksw.palmetto.data.SegmentationDefinition
-
public class SegmentationDefinition extends Object
This object contains the segmentations of a word set. Thus, it represents the set S containing pairs of word set sub sets S_i=(W',W*).- Author:
- m.roeder
-
-
Field Summary
Fields Modifier and Type Field Description int[][]conditionsDefines for every W' insegmentsan array of W* subsets.com.carrotsearch.hppc.BitSetneededCountsThis BitSet defines which counts are needed by the segmentation scheme.int[]segmentsDefines the W' of the subset pairs
-
Constructor Summary
Constructors Constructor Description SegmentationDefinition(int[] segments, int[][] conditions, com.carrotsearch.hppc.BitSet neededCounts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)int[][]getConditions()com.carrotsearch.hppc.BitSetgetNeededCounts()int[]getSegments()inthashCode()voidsetConditions(int[][] conditions)voidsetNeededCounts(com.carrotsearch.hppc.BitSet neededCounts)voidsetSegments(int[] segments)
-
-
-
Field Detail
-
segments
public int[] segments
Defines the W' of the subset pairs
-
conditions
public int[][] conditions
Defines for every W' insegmentsan array of W* subsets.
-
neededCounts
public com.carrotsearch.hppc.BitSet neededCounts
This BitSet defines which counts are needed by the segmentation scheme. Currently, this object is created but not used by the system.
-
-
Method Detail
-
getSegments
public int[] getSegments()
- Returns:
- the segments
-
setSegments
public void setSegments(int[] segments)
- Parameters:
segments- the segments to set
-
getConditions
public int[][] getConditions()
- Returns:
- the conditions
-
setConditions
public void setConditions(int[][] conditions)
- Parameters:
conditions- the conditions to set
-
getNeededCounts
public com.carrotsearch.hppc.BitSet getNeededCounts()
- Returns:
- the neededCounts
-
setNeededCounts
public void setNeededCounts(com.carrotsearch.hppc.BitSet neededCounts)
- Parameters:
neededCounts- the neededCounts to set
-
-