|
||||||||||
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.NounExtractor.NounExtractor
public class NounExtractor
This plug-in extracts the morphemes recognized as a noun after Part Of Speech tagging was done. 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.LinkedList<java.lang.String> |
nounMorphemes
the buffer for noun morphemes |
private java.util.LinkedList<java.lang.String> |
nounTags
the buffer for tags of the morphemes |
Constructor Summary | |
---|---|
NounExtractor()
|
Method Summary | |
---|---|
Sentence |
doProcess(Sentence st)
It extracts the morphemes which were recognized as noun after POS tagging. |
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 java.util.LinkedList<java.lang.String> nounMorphemes
private java.util.LinkedList<java.lang.String> nounTags
Constructor Detail |
---|
public NounExtractor()
Method Detail |
---|
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
public Sentence doProcess(Sentence st)
doProcess
in interface PosProcessor
st
- - the POS tagged sentence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |