opennlp.grok.ml.dectree
Class DTreeFeatureMap

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--opennlp.grok.ml.dectree.DTreeFeatureMap
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class DTreeFeatureMap
extends java.util.HashMap

A special map that computes values on the fly basied on FeatureComputers. So you don't have to compute a feature value until it is asked for and therefore save some work.

Version:
$Revision: 1.3 $, $Date: 2002/02/08 12:13:36 $
Author:
Gann Bierner
See Also:
Serialized Form

Constructor Summary
DTreeFeatureMap()
           
DTreeFeatureMap(java.util.Collection c)
           
 
Method Summary
 void addFeatureComputer(DTreeFeatureComputer comp)
           
 java.lang.Object get(java.lang.Object o)
           
 void setData(java.lang.Object[] d)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

DTreeFeatureMap

public DTreeFeatureMap(java.util.Collection c)

DTreeFeatureMap

public DTreeFeatureMap()
Method Detail

addFeatureComputer

public void addFeatureComputer(DTreeFeatureComputer comp)

setData

public void setData(java.lang.Object[] d)

get

public java.lang.Object get(java.lang.Object o)
Specified by:
get in interface java.util.Map
Overrides:
get in class java.util.HashMap


Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.