Package opennlp.tools.util.featuregen

## Class BrownTokenClasses

- java.lang.Object
- - opennlp.tools.util.featuregen.BrownTokenClasses

-     public class BrownTokenClasses
      extends Object

  Obtain 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 List<String>` | `getWordClasses​(String token, BrownCluster brownLexicon)` | It provides a list containing the pathLengths for a token if found in the Map:token,BrownClass.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### pathLengths

          public static final int[] pathLengths

  - ### Constructor Detail

    - #### BrownTokenClasses

          public BrownTokenClasses()

  - ### Method Detail

    - #### getWordClasses

          public static List<String> getWordClasses​(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 map
        `brownLexicon` - the Brown clustering map
      Returns:
        the list of the paths for a token