Package org.aksw.palmetto.data
Class SegmentationDefinition
java.lang.Object
org.aksw.palmetto.data.SegmentationDefinition
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
FieldsModifier and TypeFieldDescriptionint[][]Defines for every W' insegmentsan array of W* subsets.com.carrotsearch.hppc.BitSetThis BitSet defines which counts are needed by the segmentation scheme.int[]Defines the W' of the subset pairs -
Constructor Summary
ConstructorsConstructorDescriptionSegmentationDefinition(int[] segments, int[][] conditions, com.carrotsearch.hppc.BitSet neededCounts) -
Method Summary
Modifier and TypeMethodDescriptionbooleanint[][]com.carrotsearch.hppc.BitSetint[]inthashCode()voidsetConditions(int[][] conditions)voidsetNeededCounts(com.carrotsearch.hppc.BitSet neededCounts)voidsetSegments(int[] segments)
-
Field Details
-
segments
public int[] segmentsDefines the W' of the subset pairs -
conditions
public int[][] conditionsDefines for every W' insegmentsan array of W* subsets. -
neededCounts
public com.carrotsearch.hppc.BitSet neededCountsThis BitSet defines which counts are needed by the segmentation scheme. Currently, this object is created but not used by the system.
-
-
Constructor Details
-
SegmentationDefinition
public SegmentationDefinition(int[] segments, int[][] conditions, com.carrotsearch.hppc.BitSet neededCounts)
-
-
Method Details
-
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
-
hashCode
public int hashCode() -
equals
-