public class ENRelationHandler extends ENSenseIndexedBlockHandler
Modifier and Type | Field and Description |
---|---|
protected String |
comment |
protected Map<Integer,String> |
index2comment
sense index to comment
|
protected static Pattern |
PATTERN_WORD
Deprecated.
|
protected List<List<String>> |
relationList |
protected RelationType |
relationType |
labels
Constructor and Description |
---|
ENRelationHandler(RelationType relationType,
String... labels)
Initializes the block handler for the given relation type and
section headers.
|
Modifier and Type | Method and Description |
---|---|
void |
fillContent(ParsingContext context)
Add word list to senseEntry.
|
protected List<String> |
parseWordList(String text) |
boolean |
processBody(String text,
ParsingContext context)
Extract word list from the given text line
|
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.
|
protected void |
updatePosEntry(WiktionaryEntry posEntry,
IWiktionaryRelation relation) |
protected void |
updateSense(WiktionarySense sense,
IWiktionaryRelation relation) |
findMatchingSense
canHandle, getLabels
protected RelationType relationType
@Deprecated protected static final Pattern PATTERN_WORD
protected String comment
public ENRelationHandler(RelationType relationType, String... labels)
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 text, ParsingContext context)
processBody
in interface IBlockHandler
processBody
in class BlockHandler
public void fillContent(ParsingContext context)
fillContent
in interface IBlockHandler
fillContent
in class BlockHandler
protected void updateSense(WiktionarySense sense, IWiktionaryRelation relation)
protected void updatePosEntry(WiktionaryEntry posEntry, IWiktionaryRelation relation)
Copyright © 2011-2014 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.