|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
de.tudarmstadt.ukp.jwktl.parser.de.components.DEBlockHandler
de.tudarmstadt.ukp.jwktl.parser.de.components.DEPronunciationHandler
public class DEPronunciationHandler
Parser component for extracting pronunciations from the German Wiktionary.
Field Summary | |
---|---|
protected String |
parentContext
|
protected List<Pronunciation> |
pronunciations
|
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler |
---|
labels |
Constructor Summary | |
---|---|
DEPronunciationHandler()
Initializes the block handler for parsing all sections starting with one of the specified labels. |
Method Summary | |
---|---|
void |
fillContent(ParsingContext context)
This hotspot is invoked if the parser releases this handler. |
List<Pronunciation> |
getPronunciations()
Returns the list of all extracted pronunctions. |
boolean |
processBody(String textLine,
ParsingContext context)
If the handler requested to process the body of this constituent, this hotspot will be called for processing each line of the constituent's body. |
boolean |
processHead(String textLine,
ParsingContext context)
If the handler requested to process this constituent, this hotspot will be called for processing the section header of this article constituent. |
Methods inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler |
---|
canHandle, getLabels |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<Pronunciation> pronunciations
protected String parentContext
Constructor Detail |
---|
public DEPronunciationHandler()
Method Detail |
---|
public boolean processHead(String textLine, ParsingContext context)
IBlockHandler
true
if the handler
requests to handle also the body of this constituent.
processHead
in interface IBlockHandler
processHead
in class BlockHandler
public boolean processBody(String textLine, ParsingContext context)
IBlockHandler
true
if the handler requests to handle also
the next line using this handler.
processBody
in interface IBlockHandler
processBody
in class BlockHandler
public void fillContent(ParsingContext context)
IBlockHandler
fillContent
in interface IBlockHandler
fillContent
in class BlockHandler
public List<Pronunciation> getPronunciations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |