class deeppavlov.models.kbqa.kb_answer_parser_wikidata.KBAnswerParserWikidata(load_path: str, top_k_classes: int, linker: deeppavlov.models.kbqa.entity_linking.EntityLinker, classes_vocab_keys: Tuple, debug: bool = False, relations_maping_filename: str = None, templates_filename: str = None, return_confidences: bool = True, *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.