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, getLabelsprotected 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)
IBlockHandlertrue if the handler
requests to handle also the body of this constituent.processHead in interface IBlockHandlerprocessHead in class BlockHandlerpublic boolean processBody(String text, ParsingContext context)
processBody in interface IBlockHandlerprocessBody in class BlockHandlerpublic void fillContent(ParsingContext context)
fillContent in interface IBlockHandlerfillContent in class BlockHandlerprotected 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.