  ):
      logger.info("Creating Entity Linker with Wikipedia and WikiData")
  
      output_dir = Path(output_dir) if output_dir else dir_kb
      training_path = loc_training if loc_training else output_dir / TRAINING_DATA_FILE
      nlp_dir = dir_kb / KB_MODEL_DIR
      kb_path = output_dir / KB_FILE
      nlp_output_dir = output_dir / OUTPUT_MODEL_DIR
  
      # STEP 0: set up IO
 
</s> remove     kb_path = output_dir / KB_FILE
 </s> add     kb_path = dir_kb / KB_FILE </s> remove     if limit is not None:
        logger.warning("Warning: reading only {} lines of Wikipedia/Wikidata dumps.".format(limit))

 </s> add  </s> remove     descriptions_from_wikipedia=False,
    limit=None,
 </s> add     descr_from_wp=False,
    limit_prior=None,
    limit_train=None,
    limit_wd=None,
    training_path = loc_training if loc_training else dir_kb / TRAINING_DATA_FILE
  ):
      logger.info("Creating Entity Linker with Wikipedia and WikiData")
  
      output_dir = Path(output_dir) if output_dir else dir_kb
    training_path = loc_training if loc_training else dir_kb / TRAINING_DATA_FILE
      nlp_dir = dir_kb / KB_MODEL_DIR
      kb_path = output_dir / KB_FILE
      nlp_output_dir = output_dir / OUTPUT_MODEL_DIR
  
      # STEP 0: set up IO
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/wikidata_train_entity_linker.py