de.tudarmstadt.ukp.jwktl.parser.en.components
Class ENSenseIndexedBlockHandler

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
      extended by de.tudarmstadt.ukp.jwktl.parser.en.components.ENBlockHandler
          extended by de.tudarmstadt.ukp.jwktl.parser.en.components.ENSenseIndexedBlockHandler
All Implemented Interfaces:
IBlockHandler
Direct Known Subclasses:
ENRelationHandler, ENTranslationHandler

public abstract class ENSenseIndexedBlockHandler
extends ENBlockHandler

Abstract base class for extracting information types associated with a certain word sense.

Author:
Christian M. Meyer

Field Summary
 
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
labels
 
Constructor Summary
ENSenseIndexedBlockHandler(String... labels)
          Initializes the block handler for parsing all sections starting with one of the specified labels.
 
Method Summary
static WiktionarySense findMatchingSense(String comment, WiktionaryEntry entry)
          Returns the word sense of the given entry whose sense definition corresponds to the specified comment (sense marker).
 
Methods inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
canHandle, fillContent, getLabels, processBody, processHead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ENSenseIndexedBlockHandler

public ENSenseIndexedBlockHandler(String... labels)
Initializes the block handler for parsing all sections starting with one of the specified labels.

Method Detail

findMatchingSense

public static WiktionarySense findMatchingSense(String comment,
                                                WiktionaryEntry entry)
Returns the word sense of the given entry whose sense definition corresponds to the specified comment (sense marker). The matching of the corresponding word sense is achieved by word similarity metrics. Returns null if no maching word sense could be found.



Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.