sequence
Class TwoYwithXFeatureFunction
java.lang.Object
sequence.TwoYwithXFeatureFunction
- All Implemented Interfaces:
- Serializable, SequenceFeatureFunction
public class TwoYwithXFeatureFunction
- extends Object
- implements SequenceFeatureFunction
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xAsize
public int xAsize
yAsize
public int yAsize
numInputs
public int numInputs
TwoYwithXFeatureFunction
public TwoYwithXFeatureFunction(Alphabet xAlphabet,
Alphabet yAlphabet)
apply
public SparseVector apply(SparseVector[] x,
int[] y)
- Description copied from interface:
SequenceFeatureFunction
- apply the feature function to an entire sequence of y's
- Specified by:
apply
in interface SequenceFeatureFunction
wSize
public int wSize()
- Specified by:
wSize
in interface SequenceFeatureFunction
apply
public SparseVector apply(SparseVector[] xseq,
int ytm1,
int yt,
int t)
- Description copied from interface:
SequenceFeatureFunction
- apply the feature function to a pair of tags (label positions)
- Specified by:
apply
in interface SequenceFeatureFunction
- Parameters:
xseq
- entire input sequenceyt
- label at position tt
- position of interest. Should be 0<=t
Copyright © 2009. All Rights Reserved.