public class FeaturesInWindow extends Pipe implements Serializable
| Constructor and Description |
|---|
FeaturesInWindow(String namePrefix,
int leftBoundaryOffset,
int rightBoundaryOffset)
equivalent to
FeaturesInWindow((namePrefix, leftBoundaryOffset, rightBoundaryOffset, null, true);
|
FeaturesInWindow(String namePrefix,
int leftBoundaryOffset,
int rightBoundaryOffset,
Pattern featureRegex,
boolean includeBeginEndBoundaries) |
| 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 FeaturesInWindow(String namePrefix, int leftBoundaryOffset, int rightBoundaryOffset, Pattern featureRegex, boolean includeBeginEndBoundaries)
namePrefix - what to prepend to feature namesleftBoundaryOffset - left boundary of the window (e.g. -1 means
include the previous wordrightBoundaryOffset - right boundary for this window (e.g. 1 means
include the current position, but not the nextfeatureRegex - add only for features matching this (null = always matchincludeBeginEndBoundaries - ignoredpublic FeaturesInWindow(String namePrefix, int leftBoundaryOffset, int rightBoundaryOffset)
FeaturesInWindow((namePrefix, leftBoundaryOffset, rightBoundaryOffset, null, true);
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.