flair.data.EntityCandidate#

class flair.data.EntityCandidate(concept_id, concept_name, database_name, additional_ids=None, synonyms=None, description=None)View on GitHub#

Bases: object

A 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 / ontology

  • concept_name (str) – (Canonical) name of the concept from the knowledgebase / ontology

  • additional_ids (Optional[list[str]]) – List of additional identifiers for the concept / entity in the KB / ontology

  • database_name (str) – Name of the knowledgebase / ontology

  • synonyms (Optional[list[str]]) – A list of synonyms for this entry

  • description (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]