|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.lt.hog.Module
de.dfki.lt.hog.modules.test.SampleTagger
public class SampleTagger
This is a pseudo tagger just for demonstration purposes. It gives a token a UPPER tag if this token starts with an upper case character.
Field Summary |
---|
Fields inherited from class de.dfki.lt.hog.Module |
---|
CONFIG_SEARCH_PATH_PROP, LINE_SEPARATOR, MODULE_DEPTH_PROP, MODULE_LANGUAGE_PROP, MODULE_NAME_PROP, MODULE_ROOTELEMENT_PROP, moduleLog, NO, NONE, ROOT, YES |
Constructor Summary | |
---|---|
SampleTagger(java.util.Properties taggerProps)
Creates a Tagger with a given Properties
object. |
Method Summary | |
---|---|
java.lang.String |
process(java.lang.String processString)
A sample tagger to illustrate communication with MoCoMan. |
org.w3c.dom.Node |
processDOMTree(org.w3c.dom.Node domTree)
|
Methods inherited from class de.dfki.lt.hog.Module |
---|
getAbsolutOrRelativePath, getConfig, getFileProperty, getMoCoMan, getModuleDepth, getModuleLanguage, getModuleName, getModuleRootElement, getProperty, getProperty, init, searchConfigFile, searchConfigFile, setConfig, setMoCoMan, setModuleDepth, setModuleLanguage, setModuleName, setModuleRootElement, setProperty, shutdown, suitable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleTagger(java.util.Properties taggerProps)
Tagger
with a given Properties
object.
taggerProps
- configurates this Tagger
Method Detail |
---|
public java.lang.String process(java.lang.String processString)
process
in class Module
processString
- XML string to process
public org.w3c.dom.Node processDOMTree(org.w3c.dom.Node domTree)
processDOMTree
in class Module
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |