def add_entities(kb, desc_dict, nlp):
    """
    Adds company entities to KB

    :param kb: the empty Knowledge Base
    :param desc_dict: dict with KvK-numbers and SBI-code descriptions of companies
    :param nlp: the nlp object to retrieve vector of SBI-code description
    :return: the KB with companies entities added
    """

    # Add entities (set_entities)
    print("Adding entities to KB...")
    for n, (kvk, desc) in enumerate(desc_dict.items()):
        if n % 1000 == 0:
            print(f"{n}/{len(desc_dict)} entities added.")

        desc_doc = nlp(desc)
        desc_enc = desc_doc.vector
        kb.add_entity(entity=str(kvk), entity_vector=desc_enc, freq=1)

    print("Done adding entities!")

    return kb