flair.data.EntityCandidate#
- class flair.data.EntityCandidate(concept_id, concept_name, database_name, additional_ids=None, synonyms=None, description=None)View on GitHub#
Bases:
objectA Concept as part of a knowledgebase or ontology.
- __init__(concept_id, concept_name, database_name, additional_ids=None, synonyms=None, description=None)View on GitHub#
A Concept as part of a knowledgebase or ontology.
- Parameters:
concept_id (
str) – Identifier of the concept from the knowledgebase / ontologyconcept_name (
str) – (Canonical) name of the concept from the knowledgebase / ontologyadditional_ids (
Optional[list[str]]) – List of additional identifiers for the concept / entity in the KB / ontologydatabase_name (
str) – Name of the knowledgebase / ontologysynonyms (
Optional[list[str]]) – A list of synonyms for this entrydescription (
Optional[str]) – A description about the Concept to describe
Methods
__init__(concept_id, concept_name, database_name)A Concept as part of a knowledgebase or ontology.
to_dict()- to_dict()View on GitHub#
- Return type:
dict[str,Any]