de.tudarmstadt.ukp.jwktl.parser.de.components
Class DESenseExampleHandler

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
      extended by de.tudarmstadt.ukp.jwktl.parser.de.components.DEBlockHandler
          extended by de.tudarmstadt.ukp.jwktl.parser.de.components.DESenseIndexedBlockHandler<IWikiString>
              extended by de.tudarmstadt.ukp.jwktl.parser.de.components.DESenseExampleHandler
All Implemented Interfaces:
IBlockHandler

public class DESenseExampleHandler
extends DESenseIndexedBlockHandler<IWikiString>

Parser component for extracting example sentences from the German Wiktionary.

Author:
Christian M. Meyer, Lizhen Qu

Field Summary
 
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.de.components.DESenseIndexedBlockHandler
INDEX_PATTERN, indexedInformation, indexSet
 
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
labels
 
Constructor Summary
DESenseExampleHandler()
          Initializes the block handler for parsing all sections starting with one of the specified labels.
 
Method Summary
protected  List<IWikiString> extract(int index, String text)
           
protected  void updatePosEntry(WiktionaryEntry posEntry, IWikiString example)
           
protected  void updateSense(WiktionarySense sense, IWikiString example)
           
 
Methods inherited from class de.tudarmstadt.ukp.jwktl.parser.de.components.DESenseIndexedBlockHandler
addIndexedLine, appendIndexedLine, fillContent, processBody, processHead
 
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
 

Constructor Detail

DESenseExampleHandler

public DESenseExampleHandler()
Initializes the block handler for parsing all sections starting with one of the specified labels.

Method Detail

extract

protected List<IWikiString> extract(int index,
                                    String text)
Specified by:
extract in class DESenseIndexedBlockHandler<IWikiString>

updateSense

protected void updateSense(WiktionarySense sense,
                           IWikiString example)
Specified by:
updateSense in class DESenseIndexedBlockHandler<IWikiString>

updatePosEntry

protected void updatePosEntry(WiktionaryEntry posEntry,
                              IWikiString example)
Specified by:
updatePosEntry in class DESenseIndexedBlockHandler<IWikiString>


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.