public class LengthBins extends Pipe implements Serializable
| Constructor and Description |
|---|
LengthBins(String featureName,
int[] binMaxes)
bins contains the maximum sizes of elements in each bin.
|
| Modifier and Type | Method and Description |
|---|---|
Instance |
pipe(Instance carrier)
Process an Instance.
|
getDataAlphabet, getInstanceId, getParent, getParentRoot, getTargetAlphabet, isDataAlphabetSet, isTargetProcessing, pipe, readResolve, resolveDataAlphabet, resolveTargetAlphabet, setDataAlphabet, setParent, setTargetAlphabet, setTargetProcessingpublic LengthBins(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+.
public Instance pipe(Instance carrier)
PipeOne can create a new concrete subclass of Pipe simply by implementing this method.
Copyright © 2019 JULIE Lab, Germany. All rights reserved.