code: public static List<String> getWordClasses(final String token,
        final WordCluster brownLexicon) {
      if (brownLexicon.lookupToken(token) == null) {
        return new ArrayList<String>(0);
      } else {
        final String brownClass = brownLexicon.lookupToken(token);
        final List<String> pathLengthsList = new ArrayList<String>();
        pathLengthsList.add(brownClass.substring(0,
            Math.min(brownClass.length(), pathLengths[0])));
        for (int i = 1; i < pathLengths.length; i++) {
          if (pathLengths[i - 1] < brownClass.length()) {
            pathLengthsList.add(brownClass.substring(0,
                Math.min(brownClass.length(), pathLengths[i])));
          }
        }
        return pathLengthsList;
      }
    }
docs: It provides a list containing the pathLengths for a token if found in the
  {@code BrownCluster} Map token,BrownClass.
  
  @param token
  the token to be looked up in the brown clustering map
  @param brownLexicon
  the Brown clustering map
  @return the list of the paths for a token