DescKGC.tools.align package#

Submodules#

DescKGC.tools.align.base module#

DescKGC.tools.align.parser module#

DescKGC.tools.align.template module#

DescKGC.tools.align.utils module#

DescKGC.tools.align.utils.entities_nd_pair_warpper(candidate_entities: List[tuple], is_candiate=True) str[source]#

Wrap the candidate entities into a string. The input is a list of tuples, each tuple contains the name and the description of the entity. :param candidate_entities: The candidate entities :type candidate_entities: list[tuple] :param is_candiate: Whether the candidate entities are the source entity, defaults to True :type is_candiate: bool, optional :return: The wrapped string :rtype: str

DescKGC.tools.align.utils.entities_ndg_pair_warpper(candidate_entities: List[Tuple[str, str, bool]], is_candidate=True) str[source]#

Wrap the candidate entities into a string. The input is a list of tuples, each tuple contains the name, the description and generalbility of the entity. :param candidate_entities: The candidate entities :type candidate_entities: list[tuple] :param is_candiate: Whether the candidate entities are the source entity, defaults to True :type is_candiate: bool, optional