public class ENRelationHandler extends ENBlockHandler
Modifier and Type | Field and Description |
---|---|
protected List<de.tudarmstadt.ukp.jwktl.parser.en.components.WordList> |
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 WiktionarySense |
findMatchingSense(WiktionaryEntry posEntry,
de.tudarmstadt.ukp.jwktl.parser.en.components.WordList wordList) |
protected de.tudarmstadt.ukp.jwktl.parser.en.components.WordList |
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.
|
canHandle, getLabels
protected RelationType relationType
protected List<de.tudarmstadt.ukp.jwktl.parser.en.components.WordList> relationList
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 WiktionarySense findMatchingSense(WiktionaryEntry posEntry, de.tudarmstadt.ukp.jwktl.parser.en.components.WordList wordList)
protected de.tudarmstadt.ukp.jwktl.parser.en.components.WordList parseWordList(String text)
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.