public class StructureBasedWordSenseDisambiguation extends WordSenseDisambiguation
Constructor and Description |
---|
StructureBasedWordSenseDisambiguation(ContextExtractor contextExtractor,
org.semanticweb.owlapi.model.OWLOntology ontology) |
Modifier and Type | Method and Description |
---|---|
SemanticAnnotation |
disambiguate(Annotation annotation,
Set<EntityScorePair> candidateEntities)
Chooses the correct entity for the given annotation from a set of candidate entities.
|
static void |
main(String[] args) |
public StructureBasedWordSenseDisambiguation(ContextExtractor contextExtractor, org.semanticweb.owlapi.model.OWLOntology ontology)
ontology
- public SemanticAnnotation disambiguate(Annotation annotation, Set<EntityScorePair> candidateEntities)
WordSenseDisambiguation
disambiguate
in class WordSenseDisambiguation
annotation
- the annotation to find entity forcandidateEntities
- the set of candidate entities DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann