class deeppavlov.models.kbqa.kb_answer_parser_wikidata.KBAnswerParserWikidata[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.