public class BrownTokenClasses extends Object
Modifier and Type | Field and Description |
---|---|
static int[] |
pathLengths |
Constructor and Description |
---|
BrownTokenClasses() |
Modifier and Type | Method and 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.
|
public static List<String> getWordClasses(String token, BrownCluster brownLexicon)
token
- the token to be looked up in the brown clustering mapbrownLexicon
- the Brown clustering mapCopyright © 2021 The Apache Software Foundation. All rights reserved.