de.tudarmstadt.ukp.jwktl.parser.de.components
Class DEWordLanguageHandler
java.lang.Object
de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
de.tudarmstadt.ukp.jwktl.parser.de.components.DEBlockHandler
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
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler |
labels |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lemma
protected String lemma
language
protected ILanguage language
DEWordLanguageHandler
public DEWordLanguageHandler()
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.