|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmaxent.Data
public class Data
The Class Data.
Field Summary | |
---|---|
java.util.Map |
cpInt2Str
The cp int2 str. |
java.util.Map |
cpStr2Int
The cp str2 int. |
java.util.Map |
lbInt2Str
The lb int2 str. |
java.util.Map |
lbStr2Int
The lb str2 int. |
java.util.List |
trnData
The trn data. |
java.util.List |
tstData
The tst data. |
java.util.List |
ulbData
The ulb data. |
Constructor Summary | |
---|---|
Data(Option option)
Instantiates a new data. |
Method Summary | |
---|---|
int |
numCps()
Num cps. |
int |
numLabels()
Num labels. |
void |
readCpMaps(java.io.BufferedReader fin)
Read cp maps. |
void |
readLbMaps(java.io.BufferedReader fin)
Read lb maps. |
void |
readTrnData(java.lang.String dataFile)
Read trn data. |
void |
readTstData(java.lang.String dataFile)
Read tst data. |
void |
writeCpMaps(Dictionary dict,
java.io.PrintWriter fout)
Write cp maps. |
void |
writeLbMaps(java.io.PrintWriter fout)
Write lb maps. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Map lbStr2Int
public java.util.Map lbInt2Str
public java.util.Map cpStr2Int
public java.util.Map cpInt2Str
public java.util.List trnData
public java.util.List tstData
public java.util.List ulbData
Constructor Detail |
---|
public Data(Option option)
option
- the optionMethod Detail |
---|
public void readCpMaps(java.io.BufferedReader fin) throws java.io.IOException
fin
- the fin
java.io.IOException
- Signals that an I/O exception has occurred.public int numCps()
public void writeCpMaps(Dictionary dict, java.io.PrintWriter fout) throws java.io.IOException
dict
- the dictfout
- the fout
java.io.IOException
- Signals that an I/O exception has occurred.public void readLbMaps(java.io.BufferedReader fin) throws java.io.IOException
fin
- the fin
java.io.IOException
- Signals that an I/O exception has occurred.public int numLabels()
public void writeLbMaps(java.io.PrintWriter fout) throws java.io.IOException
fout
- the fout
java.io.IOException
- Signals that an I/O exception has occurred.public void readTrnData(java.lang.String dataFile)
dataFile
- the data filepublic void readTstData(java.lang.String dataFile)
dataFile
- the data file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |