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 Summary
-
Constructor Summary
-
Method Summary
Modifier 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
-
pathLengths
public static final int[] pathLengths
-
-
Constructor Details
-
BrownTokenClasses
public BrownTokenClasses()
-
-
Method Details
-
getWordClasses
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
-