com.aliasi.crf
Interface ChainCrfFeatureExtractor<E>

Type Parameters:
E - Type of tokens in the tagging.

public interface ChainCrfFeatureExtractor<E>

The ChainCrfFeatureExtractor interface specifies a method for conditional random fields to extract the necessary node and edge features for estimation and tagging.

Since:
LingPipe3.9
Version:
3.9
Author:
Bob Carpenter

Method Summary
 ChainCrfFeatures<E> extract(List<E> tokens, List<String> tags)
          Return the chain CRF features for the specified list of input tokens and specified list of possible tags.
 

Method Detail

extract

ChainCrfFeatures<E> extract(List<E> tokens,
                            List<String> tags)
Return the chain CRF features for the specified list of input tokens and specified list of possible tags.

When called from LingPipe's CRF class, the list of tags is guaranteed to be unique.

Parameters:
tokens - List of token objects.
tags - List of possible output tags.
Returns:
The features for the specified tokens and tags.