public class ENPronunciationHandler extends ENBlockHandler
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
PRONUNCIATION |
protected static Pattern |
PRONUNCIATION_AUDIO |
protected static Pattern |
PRONUNCIATION_CONTEXT |
protected static Pattern |
PRONUNCIATION_RYHME |
protected List<IPronunciation> |
pronunciations |
labels
Constructor and Description |
---|
ENPronunciationHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(String blockHeader)
Return
true if the handler requests to process the article
constituent starting at the given line of text. |
void |
fillContent(ParsingContext context)
This hotspot is invoked if the parser releases this handler.
|
List<IPronunciation> |
getPronunciations()
Returns the list of all extracted pronunciations.
|
boolean |
processBody(String textLine,
ParsingContext context)
If the handler requested to process the body of this constituent, this
hotspot will be called for processing each line of the constituent's
body.
|
boolean |
processHead(String textLine,
ParsingContext context)
If the handler requested to process this constituent, this hotspot
will be called for processing the section header of this
article constituent.
|
getLabels
protected static final Pattern PRONUNCIATION_CONTEXT
protected static final Pattern PRONUNCIATION
protected static final Pattern PRONUNCIATION_AUDIO
protected static final Pattern PRONUNCIATION_RYHME
protected List<IPronunciation> pronunciations
public boolean canHandle(String blockHeader)
IBlockHandler
true
if the handler requests to process the article
constituent starting at the given line of text.canHandle
in interface IBlockHandler
canHandle
in class BlockHandler
public boolean processHead(String textLine, ParsingContext context)
IBlockHandler
true
if the handler
requests to handle also the body of this constituent.processHead
in interface IBlockHandler
processHead
in class BlockHandler
public boolean processBody(String textLine, ParsingContext context)
IBlockHandler
true
if the handler requests to handle also
the next line using this handler.processBody
in interface IBlockHandler
processBody
in class BlockHandler
public void fillContent(ParsingContext context)
IBlockHandler
fillContent
in interface IBlockHandler
fillContent
in class BlockHandler
public List<IPronunciation> getPronunciations()
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.