Class TverskyBasedTranslationDisambiguationMethod
java.lang.Object
org.getalp.dbnary.enhancer.disambiguation.TverskyBasedTranslationDisambiguationMethod
- All Implemented Interfaces:
DisambiguationMethod
public class TverskyBasedTranslationDisambiguationMethod
extends Object
implements DisambiguationMethod
-
Constructor Summary
ConstructorsConstructorDescriptionTverskyBasedTranslationDisambiguationMethod(double alpha, double beta, double threshold) -
Method Summary
Modifier and TypeMethodDescriptionSet<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.
-
Constructor Details
-
TverskyBasedTranslationDisambiguationMethod
public TverskyBasedTranslationDisambiguationMethod(double alpha, double beta, double threshold)
-
-
Method Details
-
selectWordSenses
public Set<org.apache.jena.rdf.model.Resource> selectWordSenses(org.apache.jena.rdf.model.Resource lexicalEntry, Object context) throws InvalidContextException, InvalidEntryException Description copied from interface:DisambiguationMethodreturns a set of LexicalSense that are considered relevant by the method as a disambiguation for a LexicalEntry in a specific context.- Specified by:
selectWordSensesin interfaceDisambiguationMethod- 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
-