public class DEReferenceHandler extends DESenseIndexedBlockHandler<IWikiString>
INDEX_PATTERN, indexedInformation, indexSet
labels
Constructor and Description |
---|
DEReferenceHandler()
Initializes the block handler for parsing all sections starting with
one of the specified labels.
|
Modifier and Type | Method and Description |
---|---|
protected List<IWikiString> |
extract(int index,
String text) |
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.
|
protected void |
updatePosEntry(WiktionaryEntry posEntry,
IWikiString reference) |
protected void |
updateSense(WiktionarySense sense,
IWikiString reference) |
addIndexedLine, appendIndexedLine, fillContent, processHead
canHandle, getLabels
public DEReferenceHandler()
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 DESenseIndexedBlockHandler<IWikiString>
protected List<IWikiString> extract(int index, String text)
extract
in class DESenseIndexedBlockHandler<IWikiString>
protected void updateSense(WiktionarySense sense, IWikiString reference)
updateSense
in class DESenseIndexedBlockHandler<IWikiString>
protected void updatePosEntry(WiktionaryEntry posEntry, IWikiString reference)
updatePosEntry
in class DESenseIndexedBlockHandler<IWikiString>
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.