public class BrownClusters extends Object
Modifier and Type | Method and Description |
---|---|
static BrownClusters |
get()
This method should never be called before init, or the gazetteer will not be initialized.
|
String[] |
getPrefixes(NEWord w) |
String[] |
getPrefixes(String word) |
String |
getPrefixesCombined(String word) |
ArrayList<String> |
getResources() |
static void |
init(Vector<String> pathsToClusterFiles,
Vector<Integer> thresholds,
Vector<Boolean> isLowercaseBrownClusters)
Initialze the brown cluster data.
|
static void |
main(String[] args) |
void |
printOovData(Data data) |
static void |
set(BrownClusters bc) |
public static BrownClusters get()
public static void set(BrownClusters bc)
public static void init(Vector<String> pathsToClusterFiles, Vector<Integer> thresholds, Vector<Boolean> isLowercaseBrownClusters)
get()
method above.pathsToClusterFiles
- the files containing the data.thresholds
- isLowercaseBrownClusters
- public final void printOovData(Data data)
public static void main(String[] args)
Copyright © 2017. All rights reserved.