def METHOD_NAME(self, cand, detailed=True):
    wikidata_id = cand.get("wikidata_id", None)
    res = {
        "wikidata_id": wikidata_id,
        "wikipedia_id": cand["id"],
        "wikipedia_title": cand["title"],
    }
    if detailed:
        res["aliases"] = cand.get("aliases", None)
        sents = []
        for k in range(0, 10):
            key = "sent_desc_{}".format(k + 1)
            sents.append(cand.get(key, ""))
        res["sentences"] = sents
    return res