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.
See Also:
  • Field Details Link icon

    • pathLengths Link icon

      public static final int[] pathLengths
  • Constructor Details Link icon

    • BrownTokenClasses Link icon

      public BrownTokenClasses()
  • Method Details Link icon

    • getWordClasses Link icon

      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