ca.uottawa.balie
Class TokenFeature

java.lang.Object
  extended by ca.uottawa.balie.TokenFeature
All Implemented Interfaces:
java.io.Serializable

public class TokenFeature
extends java.lang.Object
implements java.io.Serializable

This class contains a wide range of features about a token. It is designed to balance information calculated at construction time and at access time.

Author:
nadeaud
See Also:
Serialized Form

Nested Class Summary
static class TokenFeature.BooleanMechanism
          Mechanism for a boolean feature
static class TokenFeature.Feature
          lexical features
static class TokenFeature.FeatureType
          possible types for a token feature
static interface TokenFeature.IFeature
          a feature must have a type and a mechanism that compute its value
static interface TokenFeature.Mechanism
          Each feature must implements one mechanism
static class TokenFeature.NominalMechanism
          Mechanism for a nominal feature
static class TokenFeature.NumericMechanism
          Mechanism for a numeric feature
 
Field Summary
static double UNKNOWN_NUMERIC_VALUE
           
 
Constructor Summary
TokenFeature(java.lang.String pi_RawToken, PunctLookup pi_PunctLookup)
          Construct features for a token
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_NUMERIC_VALUE

public static final double UNKNOWN_NUMERIC_VALUE
See Also:
Constant Field Values
Constructor Detail

TokenFeature

public TokenFeature(java.lang.String pi_RawToken,
                    PunctLookup pi_PunctLookup)
Construct features for a token

Parameters:
pi_RawToken - The raw version of the token
pi_PunctLookup - lookup for punctuations