Interface HypernymCapability
- All Known Subinterfaces:
ExternalResourceWithHypernymCapability
- All Known Implementing Classes:
BabelNetKnowledgeSource,DBpediaKnowledgeSource,GensimEmbeddingModel,SemanticWordRelationDictionary,WebIsAlodClassicKnowledgeSource,WebIsAlodXLKnowledgeSource,WikidataKnowledgeSource,WiktionaryKnowledgeSource,WordNetKnowledgeSource
public interface HypernymCapability
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisHypernym(String superConcept, String subConcept) Checks for a one sided hypernymy relation (as opposed toisHypernymous(String, String).booleanisHypernymous(String linkedConcept_1, String linkedConcept_2) Checks for hypernymous words in a loose-form fashion: One concept needs to be a hypernym of the other concept where the order of concepts is irrelevant, i.e., the method returns (hypernymous(w1, w2) || hypernymous(w2, w1).
-
Method Details
-
isHypernym
Checks for a one sided hypernymy relation (as opposed toisHypernymous(String, String).- Parameters:
superConcept- The linked super concept.subConcept- The linked sub concept.- Returns:
- True if
superConceptis a hypernym ofsubConcept.
-
isHypernymous
Checks for hypernymous words in a loose-form fashion: One concept needs to be a hypernym of the other concept where the order of concepts is irrelevant, i.e., the method returns (hypernymous(w1, w2) || hypernymous(w2, w1). The assumed language is English. CHECKS ONLY FOR LEVEL 1 HYPERNYMY - NO REASONING IS PERFORMED. CHECKS ONLY FOR LEVEL 1 HYPERNYMY - NO REASONING IS PERFORMED.- Parameters:
linkedConcept_1- Link to the first concept.linkedConcept_2- Link to the second concept.- Returns:
- True if the given words are hypernymous, else false.
-