|
||||||||||
| 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.MorphAnalyzer.ChartMorphAnalyzer.AnalyzedDic
public class AnalyzedDic
This class is the data structure for the pre-analyzed dictionary.
| Field Summary | |
|---|---|
private java.util.Hashtable<java.lang.String,java.lang.String> |
dictionary
|
| Constructor Summary | |
|---|---|
AnalyzedDic()
Constructor. |
|
AnalyzedDic(java.lang.String dictionaryFileName)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Cleans the data in the hash table. |
java.lang.String |
get(java.lang.String item)
Returns the contents according to the specified item. |
void |
readDic(java.lang.String dictionaryFileName)
It loads the pre-analyzed dictionary from data file to the hash table. |
| 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,java.lang.String> dictionary
| Constructor Detail |
|---|
public AnalyzedDic()
public AnalyzedDic(java.lang.String dictionaryFileName)
throws java.io.UnsupportedEncodingException,
java.io.FileNotFoundException,
java.io.IOException
dictionaryFileName - - the path for the pre-analyzed dictionary file
java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.IOException| Method Detail |
|---|
public void clear()
public java.lang.String get(java.lang.String item)
item - - item to search
public void readDic(java.lang.String dictionaryFileName)
throws java.io.UnsupportedEncodingException,
java.io.FileNotFoundException,
java.io.IOException
dictionaryFileName - - the path for the pre-analyzed dictionary file
java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||