|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkr.ac.kaist.swrc.jhannanum.plugin.MajorPlugin.PosTagger.HmmPosTagger.ProbabilityDBM
public class ProbabilityDBM
This class is for statistic data which is important to the Hidden Markov Model.
Field Summary | |
---|---|
private java.util.Hashtable<java.lang.String,double[]> |
table
hash table |
Constructor Summary | |
---|---|
ProbabilityDBM(java.lang.String fileName)
Constructor. |
Method Summary | |
---|---|
void |
clear()
Cleans the hash table. |
double[] |
get(java.lang.String key)
Gets the probability data to which specified key mapped. |
private void |
init(java.lang.String fileName)
It loads the probability data from the specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Hashtable<java.lang.String,double[]> table
Constructor Detail |
---|
public ProbabilityDBM(java.lang.String fileName) throws java.io.IOException
fileName
- - the name of the file which has statistic data
java.io.IOException
Method Detail |
---|
public void clear()
public double[] get(java.lang.String key)
key
- - the key of probability data
private void init(java.lang.String fileName) throws java.io.IOException
fileName
- - the path of the file which has the probability data
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |