Class LengthBins

  • All Implemented Interfaces:
    AlphabetCarrying, java.io.Serializable

    public class LengthBins
    extends Pipe
    implements java.io.Serializable
    A feature approximating string length.
    See Also:
    Serialized Form
    • Constructor Detail

      • LengthBins

        public LengthBins​(java.lang.String featureName,
                          int[] binMaxes)

        bins contains the maximum sizes of elements in each bin.

        For example, passing in {1,3,7} would produce 4 bins, for strings of lengths 1, 2-3, 4-7, and 8+.

    • Method Detail

      • pipe

        public Instance pipe​(Instance carrier)
        Description copied from class: Pipe
        Really this should be 'protected', but isn't for historical reasons.
        Overrides:
        pipe in class Pipe