Class TverskyBasedTranslationDisambiguationMethod

java.lang.Object
org.getalp.dbnary.enhancer.disambiguation.TverskyBasedTranslationDisambiguationMethod
All Implemented Interfaces:
DisambiguationMethod

public class TverskyBasedTranslationDisambiguationMethod extends Object implements DisambiguationMethod
  • 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: DisambiguationMethod
      returns a set of LexicalSense that are considered relevant by the method as a disambiguation for a LexicalEntry in a specific context.
      Specified by:
      selectWordSenses in interface DisambiguationMethod
      Parameters:
      lexicalEntry - the resource of the LEMON lexicalEntry to be disambiguated
      context - : 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 context
      InvalidEntryException - if the given resource does not represent an ontolex entry