All Known Subinterfaces:
ExternalResourceWithHypernymCapability
All Known Implementing Classes:
BabelNetKnowledgeSource, DBpediaKnowledgeSource, GensimEmbeddingModel, SemanticWordRelationDictionary, WebIsAlodClassicKnowledgeSource, WebIsAlodXLKnowledgeSource, WikidataKnowledgeSource, WiktionaryKnowledgeSource, WordNetKnowledgeSource

public interface HypernymCapability
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isHypernym(String superConcept, String subConcept)
    Checks for a one sided hypernymy relation (as opposed to isHypernymous(String, String).
    boolean
    isHypernymous(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

      boolean isHypernym(String superConcept, String subConcept)
      Checks for a one sided hypernymy relation (as opposed to isHypernymous(String, String).
      Parameters:
      superConcept - The linked super concept.
      subConcept - The linked sub concept.
      Returns:
      True if superConcept is a hypernym of subConcept.
    • isHypernymous

      boolean isHypernymous(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). 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.