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

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.DEWordLanguageHandler
All Implemented Interfaces:
IBlockHandler

public class DEWordLanguageHandler
extends DEBlockHandler

Parser component for extracting the lemma and its language from the German Wiktionary.

Author:
Christian M. Meyer, Lizhen Qu

Field Summary
protected  ILanguage language
           
protected  String lemma
           
 
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
labels
 
Constructor Summary
DEWordLanguageHandler()
           
 
Method Summary
 boolean canHandle(String blockHeader)
          Determine if the text line contains the language pattern.
 void fillContent(ParsingContext context)
          Store the word and its language in the parsing context.
 
Methods inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
getLabels, processBody, processHead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lemma

protected String lemma

language

protected ILanguage language
Constructor Detail

DEWordLanguageHandler

public DEWordLanguageHandler()
Method Detail

canHandle

public boolean canHandle(String blockHeader)
Determine if the text line contains the language pattern. If the language pattern is found, the entry's word and its language will be extracted from the text line.

Specified by:
canHandle in interface IBlockHandler
Overrides:
canHandle in class BlockHandler

fillContent

public void fillContent(ParsingContext context)
Store the word and its language in the parsing context.

Specified by:
fillContent in interface IBlockHandler
Overrides:
fillContent in class BlockHandler


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