edu.washington.cs.knowitall.extractor.conf.opennlp
Class OpenNlpAlphabet<T>

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.conf.opennlp.OpenNlpAlphabet<T>
Type Parameters:
T -

public class OpenNlpAlphabet<T>
extends Object

OpenNLP requires features to have a unique text representation. This class facilitates a lookup from feature name and feature value to a unique string of the form featureName=featureValue. This is for a performance boost from avoiding string concatenations.

Author:
schmmd

Nested Class Summary
static class OpenNlpAlphabet.Key
           
 
Field Summary
 com.google.common.collect.ImmutableMap<OpenNlpAlphabet.Key,String> lookup
           
 
Constructor Summary
OpenNlpAlphabet(BooleanFeatureSet<T> features)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lookup

public final com.google.common.collect.ImmutableMap<OpenNlpAlphabet.Key,String> lookup
Constructor Detail

OpenNlpAlphabet

public OpenNlpAlphabet(BooleanFeatureSet<T> features)


Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.