deeppavlov.models.kbqa

class deeppavlov.models.kbqa.kb_answer_parser_simple.KBAnswerParserSimple(top_k_classes: int, rule_filter_entities: bool = False, return_confidences: bool = False, language: str = 'eng', relations_maping_filename: Optional[str] = None, templates_filename: Optional[str] = None, *args, **kwargs)[source]

This class generates an answer for a given question using Wikidata. It searches for matching triplet from the Wikidata with entity and relation mentioned in the question. It uses results of the Named Entity Recognition component to extract entity mention and Classification component to determine relation which connects extracted entity and the answer entity.