public class DEPartOfSpeechHandler extends DEBlockHandler
Modifier and Type | Field and Description |
---|---|
protected DEEntryFactory |
entryFactory |
protected static Pattern |
GENDER_PATTERN |
protected List<GrammaticalGender> |
genders |
protected static Pattern |
POS_PATTERN |
protected List<PartOfSpeech> |
posList |
labels
Constructor and Description |
---|
DEPartOfSpeechHandler() |
Modifier and Type | Method and Description |
---|---|
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.
|
getLabels, processBody
protected static final Pattern POS_PATTERN
protected static final Pattern GENDER_PATTERN
protected DEEntryFactory entryFactory
protected List<PartOfSpeech> posList
protected List<GrammaticalGender> genders
public boolean canHandle(String blockHeader)
canHandle
in interface IBlockHandler
canHandle
in class BlockHandler
public boolean processHead(String text, ParsingContext context)
processHead
in interface IBlockHandler
processHead
in class BlockHandler
public void fillContent(ParsingContext context)
fillContent
in interface IBlockHandler
fillContent
in class BlockHandler
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.