de.tudarmstadt.ukp.jwktl.parser.en.components
Class ENReferenceHandler
java.lang.Object
de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
de.tudarmstadt.ukp.jwktl.parser.en.components.ENBlockHandler
de.tudarmstadt.ukp.jwktl.parser.en.components.ENReferenceHandler
- All Implemented Interfaces:
- IBlockHandler
public class ENReferenceHandler
- extends ENBlockHandler
Parser component for extracting references and external links from
the English Wiktionary.
- Author:
- Christian M. Meyer, Lizhen Qu
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler |
labels |
Constructor Summary |
ENReferenceHandler()
Initializes the block handler for parsing all sections starting with
one of the specified labels. |
Method Summary |
void |
fillContent(ParsingContext context)
Add external links to WordEntry |
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. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
references
protected List<IWikiString> references
inTemplate
protected boolean inTemplate
ENReferenceHandler
public ENReferenceHandler()
- Initializes the block handler for parsing all sections starting with
one of the specified labels.
processHead
public boolean processHead(String textLine,
ParsingContext context)
- Description copied from interface:
IBlockHandler
- If the handler requested to process this constituent, this hotspot
will be called for processing the section header of this
article constituent. Return
true
if the handler
requests to handle also the body of this constituent.
- Specified by:
processHead
in interface IBlockHandler
- Overrides:
processHead
in class BlockHandler
processBody
public boolean processBody(String textLine,
ParsingContext context)
- Description copied from interface:
IBlockHandler
- 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. Return
true
if the handler requests to handle also
the next line using this handler.
- Specified by:
processBody
in interface IBlockHandler
- Overrides:
processBody
in class BlockHandler
fillContent
public void fillContent(ParsingContext context)
- Add external links to WordEntry
- Specified by:
fillContent
in interface IBlockHandler
- Overrides:
fillContent
in class BlockHandler
Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.