sequence
Class TwoYwithXFeatureFunction

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

public class TwoYwithXFeatureFunction
extends Object
implements SequenceFeatureFunction

See Also:
Serialized Form

Field Summary
 int numInputs
           
 int xAsize
           
 int yAsize
           
 
Constructor Summary
TwoYwithXFeatureFunction(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[] xseq, 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

numInputs

public int numInputs
Constructor Detail

TwoYwithXFeatureFunction

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


Copyright © 2009. All Rights Reserved.