Class LengthBins

  • All Implemented Interfaces:

    public class LengthBins
    extends Pipe
    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.
        pipe in class Pipe