Class BrownTokenClasses


  • public class BrownTokenClasses
    extends java.lang.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  
    • 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.
      • 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 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 map
        brownLexicon - the Brown clustering map
        Returns:
        the list of the paths for a token