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 Details

    • segments

      public int[] segments
      Defines the W' of the subset pairs
    • conditions

      public int[][] conditions
      Defines for every W' in segments an 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.
  • 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object