de.tudarmstadt.ukp.jwktl.parser.de.components
Class DEPartOfSpeechHandler
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.DEPartOfSpeechHandler
- All Implemented Interfaces:
- IBlockHandler
public class DEPartOfSpeechHandler
- extends DEBlockHandler
Parser component for extracting part of speech tags from the German Wiktionary.
- Author:
- Christian M. Meyer, Lizhen Qu
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler |
labels |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POS_PATTERN
protected static final Pattern POS_PATTERN
GENDER_PATTERN
protected static final Pattern GENDER_PATTERN
entryFactory
protected DEEntryFactory entryFactory
posList
protected List<PartOfSpeech> posList
gender
protected GrammaticalGender gender
DEPartOfSpeechHandler
public DEPartOfSpeechHandler()
canHandle
public boolean canHandle(String blockHeader)
- Check if the given text contains a part of speech header.
- Specified by:
canHandle
in interface IBlockHandler
- Overrides:
canHandle
in class BlockHandler
processHead
public boolean processHead(String text,
ParsingContext context)
- Extract the part of speech tags and additional grammatical
information.
- Specified by:
processHead
in interface IBlockHandler
- Overrides:
processHead
in class BlockHandler
fillContent
public void fillContent(ParsingContext context)
- Set the part of pseech tags and additional grammatical information.
- Specified by:
fillContent
in interface IBlockHandler
- Overrides:
fillContent
in class BlockHandler
Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.