de.tudarmstadt.ukp.jwktl.parser.de.components
Class DEReferenceHandler
java.lang.Object
de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
de.tudarmstadt.ukp.jwktl.parser.de.components.DEBlockHandler
de.tudarmstadt.ukp.jwktl.parser.de.components.DESenseIndexedBlockHandler<IWikiString>
de.tudarmstadt.ukp.jwktl.parser.de.components.DEReferenceHandler
- All Implemented Interfaces:
- IBlockHandler
public class DEReferenceHandler
- extends DESenseIndexedBlockHandler<IWikiString>
Parser component for extracting references from the German Wiktionary.
- Author:
- Christian M. Meyer, Lizhen Qu
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler |
labels |
Constructor Summary |
DEReferenceHandler()
Initializes the block handler for parsing all sections starting with
one of the specified labels. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEReferenceHandler
public DEReferenceHandler()
- Initializes the block handler for parsing all sections starting with
one of the specified labels.
processBody
public boolean processBody(String textLine,
ParsingContext context)
- Description copied from interface:
IBlockHandler
- 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. Return
true
if the handler requests to handle also
the next line using this handler.
- Specified by:
processBody
in interface IBlockHandler
- Overrides:
processBody
in class DESenseIndexedBlockHandler<IWikiString>
extract
protected List<IWikiString> extract(int index,
String text)
- Specified by:
extract
in class DESenseIndexedBlockHandler<IWikiString>
updateSense
protected void updateSense(WiktionarySense sense,
IWikiString reference)
- Specified by:
updateSense
in class DESenseIndexedBlockHandler<IWikiString>
updatePosEntry
protected void updatePosEntry(WiktionaryEntry posEntry,
IWikiString reference)
- Specified by:
updatePosEntry
in class DESenseIndexedBlockHandler<IWikiString>
Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.