          id_to_descr,
          entity_frequencies,
          min_entity_freq
      )
      logger.info("Left with {} entities".format(len(description_list)))
  
      logger.info("Train entity encoder")
      encoder = EntityEncoder(nlp, input_dim, entity_vector_length)
      encoder.train(description_list=description_list, to_print=True)
  
 
</s> remove     logger.info("Train entity encoder")
 </s> add     logger.info("Training entity encoder") </s> remove     logger.info("Get entity embeddings:")
 </s> add     logger.info("Getting entity embeddings") </s> remove     logger.info("KB size: {} entities, {} aliases".format(
        kb.get_size_entities(),
        kb.get_size_aliases()))

    logger.info("Done with kb")
    return kb

 </s> add  </s> remove     logger.info("Get entity frequencies")
    entity_frequencies = wp.get_all_frequencies(count_input=count_input)

 </s> add 
    logger.info("Kept {} entities from the set of {}".format(len(description_list), len(title_to_id.keys())))
          id_to_descr,
          entity_frequencies,
          min_entity_freq
      )
    logger.info("Kept {} entities from the set of {}".format(len(description_list), len(title_to_id.keys())))
  
      logger.info("Train entity encoder")
      encoder = EntityEncoder(nlp, input_dim, entity_vector_length)
      encoder.train(description_list=description_list, to_print=True)
  
keep keep keep keep replace keep keep keep keep keep
 KB extensions and better parsing of WikiData (#4375)

* fix overflow error on windows

* more documentation & logging fixes

* md fix

* 3 different limit parameters to play with execution time

* bug fixes directory locations

* small fixes

* exclude dev test articles from prior probabilities stats

* small fixes

* filtering wikidata entities, removing numeric and meta items

* adding aliases from wikidata also to the KB

* fix adding WD aliases

* adding also new aliases to previously added entities

* fixing comma's

* small doc fixes

* adding subclassof filtering

* append alias functionality in KB

* prevent appending the same entity-alias pair

* fix for appending WD aliases

* remove date filter

* remove unnecessary import

* small corrections and reformatting

* remove WD aliases for now (too slow)

* removing numeric entities from training and evaluation

* small fixes

* shortcut during prediction if there is only one candidate

* add counts and fscore logging, remove FP NER from evaluation

* fix entity_linker.predict to take docs instead of single sentences

* remove enumeration sentences from the WP dataset

* entity_linker.update to process full doc instead of single sentence

* spelling corrections and dump locations in readme

* NLP IO fix

* reading KB is unnecessary at the end of the pipeline

* small logging fix

* remove empty files 
bin/wiki_entity_linking/kb_creator.py