sequence
Class OneYwithXFeatureFunction

java.lang.Object
  extended by sequence.OneYwithXFeatureFunction
All Implemented Interfaces:
Serializable, SequenceFeatureFunction

public class OneYwithXFeatureFunction
extends Object
implements SequenceFeatureFunction, Serializable

See Also:
Serialized Form

Field Summary
 int xAsize
           
 int yAsize
           
 
Constructor Summary
OneYwithXFeatureFunction(Alphabet xAlphabet, Alphabet yAlphabet)
           
 
Method Summary
 SparseVector apply(SparseVector[] x, int[] y)
          apply the feature function to an entire sequence of y's
 SparseVector apply(SparseVector[] x, int ytm1, int yt, int t)
          apply the feature function to a pair of tags (label positions)
 int wSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xAsize

public int xAsize

yAsize

public int yAsize
Constructor Detail

OneYwithXFeatureFunction

public OneYwithXFeatureFunction(Alphabet xAlphabet,
                                Alphabet yAlphabet)
Method Detail

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 sequence
yt - label at position t
t - position of interest. Should be 0<=t


Copyright © 2009. All Rights Reserved.