de.tudarmstadt.ukp.jwktl.parser.en.components
Class ENSenseIndexedBlockHandler
java.lang.Object
de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
de.tudarmstadt.ukp.jwktl.parser.en.components.ENBlockHandler
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
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENSenseIndexedBlockHandler
public ENSenseIndexedBlockHandler(String... labels)
- Initializes the block handler for parsing all sections starting with
one of the specified labels.
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.