sequence
Interface SequenceFeatureFunction

All Superinterfaces:
Serializable
All Known Implementing Classes:
OneYwithXFeatureFunction, TwoYwithXFeatureFunction

public interface SequenceFeatureFunction
extends Serializable


Method Summary
 SparseVector apply(SparseVector[] x, int[] y)
          apply the feature function to an entire sequence of y's
 SparseVector apply(SparseVector[] x, int ymt1, int yt, int t)
          apply the feature function to a pair of tags (label positions)
 int wSize()
           
 

Method Detail

apply

SparseVector apply(SparseVector[] x,
                   int[] y)
apply the feature function to an entire sequence of y's


apply

SparseVector apply(SparseVector[] x,
                   int ymt1,
                   int yt,
                   int t)
apply the feature function to a pair of tags (label positions)

Parameters:
x - entire input sequence
ytm1 - label at position t-1
yt - label at position t
t - position of interest. Should be 0<=t

wSize

int wSize()


Copyright © 2009. All Rights Reserved.