sequence
Class OneYwithXFeatureFunction
java.lang.Object
sequence.OneYwithXFeatureFunction
- All Implemented Interfaces:
- Serializable, SequenceFeatureFunction
public class OneYwithXFeatureFunction
- extends Object
- implements SequenceFeatureFunction, Serializable
- 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
OneYwithXFeatureFunction
public OneYwithXFeatureFunction(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[] x,
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:
x
- entire input sequenceyt
- label at position tt
- position of interest. Should be 0<=t
Copyright © 2009. All Rights Reserved.