Interface DisambiguationMethod
- All Known Implementing Classes:
SenseNumberBasedTranslationDisambiguationMethod, TverskyBasedTranslationDisambiguationMethod
public interface DisambiguationMethod
-
Method Summary
Modifier and TypeMethodDescriptionSet<? extends org.apache.jena.rdf.model.Resource> selectWordSenses(org.apache.jena.rdf.model.Resource lexicalEntry, Object context) returns a set of LexicalSense that are considered relevant by the method as a disambiguation for a LexicalEntry in a specific context.
-
Method Details
-
selectWordSenses
Set<? extends org.apache.jena.rdf.model.Resource> selectWordSenses(org.apache.jena.rdf.model.Resource lexicalEntry, Object context) throws InvalidContextException, InvalidEntryException returns a set of LexicalSense that are considered relevant by the method as a disambiguation for a LexicalEntry in a specific context.- Parameters:
lexicalEntry- the resource of the LEMON lexicalEntry to be disambiguatedcontext- : the context used by the specific method as a disambiguation criterion- Returns:
- a set of resources corresponding to selected word senses.
- Throws:
InvalidContextException- if the given context object is not a contextInvalidEntryException- if the given resource does not represent an ontolex entry
-