public class OffsetFeatureConjunction extends Pipe implements Serializable
| Constructor and Description |
|---|
OffsetFeatureConjunction(String thisFeatureName,
String[] featureNames,
int[] offsets) |
OffsetFeatureConjunction(String thisFeatureName,
String[] featureNames,
int[] offsets,
boolean tagAllTimesteps) |
OffsetFeatureConjunction(String thisFeatureName,
String[] featureNames,
int[] offsets,
boolean[] isNonNegated,
boolean tagAllTimesteps)
Create a Pipe for adding conjunctions of specified features.
|
| 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 OffsetFeatureConjunction(String thisFeatureName, String[] featureNames, int[] offsets, boolean[] isNonNegated, boolean tagAllTimesteps)
thisFeatureName - Name of this conjunction feature.featureNames - String giving name for each subfeature i.offsets - For each subfeature i, which offset from the current timestep
must i appear at.isNonNegated - If element i is false, then the negation of the
feature is added to the conjuction.public OffsetFeatureConjunction(String thisFeatureName, String[] featureNames, int[] offsets, boolean tagAllTimesteps)
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.