public class DERelationHandler extends DESenseIndexedBlockHandler<IWiktionaryRelation>
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
HTML_REMOVER |
protected String |
notes |
protected static Pattern |
REFERENCE_PATTERN |
protected RelationType |
relationType |
protected static Pattern |
SUPERSCRIPT_PATTERN |
INDEX_PATTERN, indexedInformation, indexSet
labels
Constructor and Description |
---|
DERelationHandler(RelationType relationType,
String... labels)
Initializes the block handler for parsing all sections starting with
one of the specified labels.
|
Modifier and Type | Method and Description |
---|---|
protected String |
addDelimiters(String text) |
protected String |
deWikify(String word) |
protected String |
escapeDelimiters(String text) |
protected List<IWiktionaryRelation> |
extract(int index,
String text) |
protected String |
normalizeWord(String word) |
protected String |
removeBrackets(String word) |
protected String |
removeComments(String word) |
protected String |
removeTemplates(String word) |
protected void |
updatePosEntry(WiktionaryEntry posEntry,
IWiktionaryRelation relation) |
protected void |
updateSense(WiktionarySense sense,
IWiktionaryRelation relation) |
addIndexedLine, appendIndexedLine, fillContent, processBody, processHead
canHandle, getLabels
protected RelationType relationType
protected String notes
protected static final Pattern REFERENCE_PATTERN
protected static final Pattern SUPERSCRIPT_PATTERN
protected static final Pattern HTML_REMOVER
public DERelationHandler(RelationType relationType, String... labels)
protected List<IWiktionaryRelation> extract(int index, String text)
extract
in class DESenseIndexedBlockHandler<IWiktionaryRelation>
protected void updateSense(WiktionarySense sense, IWiktionaryRelation relation)
updateSense
in class DESenseIndexedBlockHandler<IWiktionaryRelation>
protected void updatePosEntry(WiktionaryEntry posEntry, IWiktionaryRelation relation)
updatePosEntry
in class DESenseIndexedBlockHandler<IWiktionaryRelation>
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.