Package opennlp.tools.util.featuregen
Class BrownTokenClasses
java.lang.Object
opennlp.tools.util.featuregen.BrownTokenClasses
Obtain the paths listed in the pathLengths array from the Brown class.
 This class is not to be instantiated.
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetWordClasses(String token, BrownCluster brownLexicon) It provides a list containing the pathLengths for a token if found in the Map:token,BrownClass.
- 
Field Details- 
pathLengthspublic static final int[] pathLengths
 
- 
- 
Constructor Details- 
BrownTokenClassespublic BrownTokenClasses()
 
- 
- 
Method Details- 
getWordClassesIt 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 map
- brownLexicon- The- BrownClusterclustering map
- Returns:
- A list of the paths for a token.
 
 
-