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

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.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

Field Summary
protected  DEEntryFactory entryFactory
           
protected  GrammaticalGender gender
           
protected static Pattern GENDER_PATTERN
           
protected static Pattern POS_PATTERN
           
protected  List<PartOfSpeech> posList
           
 
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
labels
 
Constructor Summary
DEPartOfSpeechHandler()
           
 
Method Summary
 boolean canHandle(String blockHeader)
          Check if the given text contains a part of speech header.
 void fillContent(ParsingContext context)
          Set the part of pseech tags and additional grammatical information.
 boolean processHead(String text, ParsingContext context)
          Extract the part of speech tags and additional grammatical information.
 
Methods inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
getLabels, processBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DEPartOfSpeechHandler

public DEPartOfSpeechHandler()
Method Detail

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.