Class SenseNumberBasedTranslationDisambiguationMethod
java.lang.Object
org.getalp.dbnary.enhancer.disambiguation.SenseNumberBasedTranslationDisambiguationMethod
- All Implemented Interfaces:
DisambiguationMethod
public class SenseNumberBasedTranslationDisambiguationMethod
extends Object
implements DisambiguationMethod
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSenseNumbers(String nums) Set<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.
-
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: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
-
getSenseNumbers
-