Class SenseNumberBasedTranslationDisambiguationMethod

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

public class SenseNumberBasedTranslationDisambiguationMethod extends Object implements DisambiguationMethod
  • Field Details

    • NUMSN

      public static int NUMSN
  • Constructor Details

    • SenseNumberBasedTranslationDisambiguationMethod

      public SenseNumberBasedTranslationDisambiguationMethod()
  • 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
    • getSenseNumbers

      public static ArrayList<String> getSenseNumbers(String nums)