|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkr.ac.kaist.swrc.jhannanum.plugin.SupplementPlugin.PosProcessor.SimplePOSResult09.SimplePOSResult09
public class SimplePOSResult09
This plug-in changes the detailed POS tagging results to be simple. The KAIST tag set has
69 morpheme tags but this plug-in uses only 9 tags:
N(체언), P(용언), M(수식언), I(독립언), J(관계언), E(어미), X(접사), S(기호), F(외국어)
It is a POS Processor plug-in which is a supplement plug-in of phase 3 in HanNanum work flow.
Field Summary | |
---|---|
private java.util.ArrayList<java.lang.String> |
morphemeList
temporary list for morpheme tags |
private int |
TAG_LEVEL
the level of analysis |
private java.util.ArrayList<java.lang.String> |
tagList
temporary list for new tags |
Constructor Summary | |
---|---|
SimplePOSResult09()
Constructor. |
Method Summary | |
---|---|
Sentence |
doProcess(Sentence st)
It changes the POS tagging result with 69 KAIST tags to the simplified result with 9 tags. |
void |
initialize(java.lang.String baseDir,
java.lang.String configFile)
This method is called before the work flow starts in order to initialize the plug-in. |
void |
shutdown()
This method is called before the work flow is closed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int TAG_LEVEL
private java.util.ArrayList<java.lang.String> tagList
private java.util.ArrayList<java.lang.String> morphemeList
Constructor Detail |
---|
public SimplePOSResult09()
Method Detail |
---|
public Sentence doProcess(Sentence st)
doProcess
in interface PosProcessor
st
- - the result of morphological analysis where each eojeol has more than analysis result
public void initialize(java.lang.String baseDir, java.lang.String configFile) throws java.lang.Exception
Plugin
initialize
in interface Plugin
baseDir
- - the base directory of HanNanum filesconfigFile
- - the path for the configuration file
java.lang.Exception
- xpublic void shutdown()
Plugin
shutdown
in interface Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |