Package opennlp.tools.util.featuregen
Class BrownTokenClasses
- java.lang.Object
 - 
- opennlp.tools.util.featuregen.BrownTokenClasses
 
 
- 
public class BrownTokenClasses extends java.lang.ObjectObtain the paths listed in the pathLengths array from the Brown class. This class is not to be instantiated. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static int[]pathLengths 
- 
Constructor Summary
Constructors Constructor Description BrownTokenClasses() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String>getWordClasses(java.lang.String token, BrownCluster brownLexicon)It provides a list containing the pathLengths for a token if found in the Map:token,BrownClass. 
 - 
 
- 
- 
Method Detail
- 
getWordClasses
public static java.util.List<java.lang.String> getWordClasses(java.lang.String token, BrownCluster brownLexicon)It provides a list containing the pathLengths for a token if found in the Map:token,BrownClass.- Parameters:
 token- the token to be looked up in the brown clustering mapbrownLexicon- the Brown clustering map- Returns:
 - the list of the paths for a token
 
 
 - 
 
 -