|
||||||||||
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.ChartMorphAnalyzer
public class ChartMorphAnalyzer
Chart-based Morphological Analyzer. It is a morphological analyzer plug-in which is a major plug-in of phase 2 in HanNanum work flow. This uses the lattice-style chart as a internal data structure, which makes it possible to do morphological analysis without back tracking.
Field Summary | |
---|---|
private AnalyzedDic |
analyzedDic
Pre-analyzed dictionary. |
private MorphemeChart |
chart
Lattice-style morpheme chart. |
private Connection |
connection
Connection rules between morphemes. |
private ConnectionNot |
connectionNot
Impossible connection rules. |
private java.util.LinkedList<Eojeol> |
eojeolList
Eojeol list |
private java.lang.String |
fileConnections
The file path for the connection rules. |
private java.lang.String |
fileConnectionsNot
The file path for the impossible connection rules. |
private java.lang.String |
fileDicAnalyzed
The file path for the pre-analyzed dictionary. |
private java.lang.String |
fileDicSystem
The file path for the default morpheme dictionary. |
private java.lang.String |
fileDicUser
The file path for the user morpheme dictionary. |
private java.lang.String |
fileTagSet
The file path for the tag set. |
private NumberDic |
numDic
Number dictionary, which is actually a automata. |
private static java.lang.String |
PLUG_IN_NAME
Name of this plug-in. |
private PostProcessor |
postProc
Post-processor to deal with some exceptions |
private Simti |
simti
SIMTI structure for reverse segment position. |
private Trie |
systemDic
Default morpheme dictionary. |
private TagSet |
tagSet
Morpheme tag set |
private Trie |
userDic
Additional morpheme dictionary that users can modify for their own purpose. |
Constructor Summary | |
---|---|
ChartMorphAnalyzer()
|
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name of the morphological analysis plug-in. |
void |
initialize(java.lang.String baseDir,
java.lang.String configFile)
Initializes the Chart-based Morphological Analyzer plug-in. |
SetOfSentences |
morphAnalyze(PlainSentence ps)
Analyzes the specified plain sentence, and returns all the possible analysis results. |
private Eojeol[] |
processEojeol(java.lang.String plainEojeol)
It processes the input plain eojeol by analyzing it or searching the pre-analyzed dictionary. |
void |
shutdown()
It is called right before the work flow ends. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String PLUG_IN_NAME
private AnalyzedDic analyzedDic
private Trie systemDic
private Trie userDic
private NumberDic numDic
private TagSet tagSet
private Connection connection
private ConnectionNot connectionNot
private MorphemeChart chart
private Simti simti
private java.lang.String fileConnectionsNot
private java.lang.String fileConnections
private java.lang.String fileDicAnalyzed
private java.lang.String fileDicSystem
private java.lang.String fileDicUser
private java.lang.String fileTagSet
private java.util.LinkedList<Eojeol> eojeolList
private PostProcessor postProc
Constructor Detail |
---|
public ChartMorphAnalyzer()
Method Detail |
---|
public java.lang.String getName()
private Eojeol[] processEojeol(java.lang.String plainEojeol)
plainEojeol
- - plain eojeol to analyze
public SetOfSentences morphAnalyze(PlainSentence ps)
morphAnalyze
in interface MorphAnalyzer
ps
- - the plain sentence to be morphologically analyzed
public void initialize(java.lang.String baseDir, java.lang.String configFile) throws java.lang.Exception
initialize
in interface Plugin
baseDir
- - the path for base directory, which should have the 'conf' and 'data' directoryconfigFile
- - the path for the configuration file (relative path to the base directory)
java.lang.Exception
- xpublic void shutdown()
shutdown
in interface Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |