Interface SynonymCapability
- All Known Subinterfaces:
ExternalResourceWithSynonymCapability
- All Known Implementing Classes:
BabelNetKnowledgeSource
,DBpediaKnowledgeSource
,GensimEmbeddingModel
,SemanticWordRelationDictionary
,WebIsAlodClassicKnowledgeSource
,WebIsAlodXLKnowledgeSource
,WikidataKnowledgeSource
,WiktionaryKnowledgeSource
,WordNetKnowledgeSource
public interface SynonymCapability
Interface for external resources that are capable to determine whether two
concepts are synonymous given that the concepts are already linked.
-
Method Summary
Modifier and TypeMethodDescriptiongetSynonymsLexical
(String linkedConcept) Get the synonyms.boolean
isStrongFormSynonymous
(String linkedConcept1, String linkedConcept2) Given two links, determine whether those are synonymous.boolean
isSynonymous
(String linkedConcept1, String linkedConcept2) Given two links, determine whether those are synonymous.
-
Method Details
-
getSynonymsLexical
Get the synonyms.- Parameters:
linkedConcept
- Linked concept.- Returns:
- A set of synonym words/labels (not links or URIs!).
-
isSynonymous
Given two links, determine whether those are synonymous. Some sources have multiple notions of synonymy, if this is the case, this method refers to the looser interpretation.- Parameters:
linkedConcept1
- Linked concept 1.linkedConcept2
- Linked concept 2.- Returns:
- True if synonymous, else false.
-
isStrongFormSynonymous
Given two links, determine whether those are synonymous. Some sources have multiple notions of synonymy, if this is the case, this method refers to the stricter interpretation.- Parameters:
linkedConcept1
- Linked concept 1.linkedConcept2
- Linked concept 2.- Returns:
- True if synonymous, else false.
-