opennlp.tools.util.featuregen
Class FeatureGeneratorUtil

java.lang.Object
  extended by opennlp.tools.util.featuregen.FeatureGeneratorUtil

public class FeatureGeneratorUtil
extends Object

This class provide common utilities for feature generation.


Constructor Summary
FeatureGeneratorUtil()
           
 
Method Summary
static String tokenFeature(String token)
          Generates a class name for the specified token.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureGeneratorUtil

public FeatureGeneratorUtil()
Method Detail

tokenFeature

public static String tokenFeature(String token)
Generates a class name for the specified token. The classes are as follows where the first matching class is used:

Parameters:
token - A token or word.
Returns:
The class name that the specified token belongs in.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.