public final class Thesaurus extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LPATH |
static String |
SPATH |
| Constructor and Description |
|---|
Thesaurus() |
Thesaurus(DataInputStream dis)
Read the cluster
|
Thesaurus(String clusterFile,
IEncoderPlus mf,
int ls) |
| Modifier and Type | Method and Description |
|---|---|
int |
get(int form,
int k)
get the long path to a word form in the cluster
|
void |
write(DataOutputStream dos)
Write the cluster
|
public static final String LPATH
public static final String SPATH
public Thesaurus()
public Thesaurus(String clusterFile, IEncoderPlus mf, int ls)
clusterFile - mf - public Thesaurus(DataInputStream dis) throws IOException
dos - IOExceptionpublic void write(DataOutputStream dos) throws IOException
dos - IOExceptionpublic final int get(int form,
int k)
form - the id of a word formCopyright © 2013. All rights reserved.