|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
de.tudarmstadt.ukp.jwktl.parser.en.components.ENBlockHandler
de.tudarmstadt.ukp.jwktl.parser.en.components.ENSenseIndexedBlockHandler
de.tudarmstadt.ukp.jwktl.parser.en.components.ENRelationHandler
public class ENRelationHandler
Parser component for extracting semantic relations from the English Wiktionary.
Field Summary | |
---|---|
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
|
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler |
---|
labels |
Constructor Summary | |
---|---|
ENRelationHandler(RelationType relationType,
String... labels)
Initializes the block handler for the given relation type and section headers. |
Method Summary | |
---|---|
void |
fillContent(ParsingContext context)
Add word list to senseEntry. addSemanticWord and addUnclassifiedWords will be called to decide where to store the word list. |
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)
|
Methods inherited from class de.tudarmstadt.ukp.jwktl.parser.en.components.ENSenseIndexedBlockHandler |
---|
findMatchingSense |
Methods inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler |
---|
canHandle, getLabels |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RelationType relationType
@Deprecated protected static final Pattern PATTERN_WORD
protected List<List<String>> relationList
protected Map<Integer,String> index2comment
protected String comment
Constructor Detail |
---|
public ENRelationHandler(RelationType relationType, String... labels)
Method Detail |
---|
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
protected List<String> parseWordList(String text)
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |