          map_alias_to_link[alias] = alias_dict
  
  def _read_wikipedia():
      """ Read the XML wikipedia data """
      # TODO remove hardcoded path
  
      # with bz2.open('C:/Users/Sofie/Documents/data/wikipedia/enwiki-20190320-pages-articles-multistream-index.txt.bz2', mode='rb') as file:
      with bz2.open('C:/Users/Sofie/Documents/data/wikipedia/enwiki-20190320-pages-articles-multistream.xml.bz2', mode='rb') as file:
          line = file.readline()
          cnt = 1
 
</s> remove     # with bz2.open('C:/Users/Sofie/Documents/data/wikipedia/enwiki-20190320-pages-articles-multistream-index.txt.bz2', mode='rb') as file:
    with bz2.open('C:/Users/Sofie/Documents/data/wikipedia/enwiki-20190320-pages-articles-multistream.xml.bz2', mode='rb') as file:
 </s> add     with bz2.open(ENWIKI_DUMP, mode='rb') as file: </s> remove     # TODO remove hardcoded path
    with bz2.open('C:/Users/Sofie/Documents/data/wikipedia/enwiki-20190320-pages-articles-multistream.xml.bz2', mode='rb') as file:
 </s> add     with bz2.open(ENWIKI_DUMP, mode='rb') as file: </s> remove     with bz2.open('C:/Users/Sofie/Documents/data/wikidata/wikidata-20190304-all.json.bz2', mode='rb') as file:
 </s> add     with bz2.open(WIKIDATA_JSON, mode='rb') as file: </s> remove     # only print aliases with more than one potential entity
    # TODO remove hardcoded path
    with open('C:/Users/Sofie/Documents/data/wikipedia/prior_prob.csv', mode='w', encoding='utf8') as outputfile:
 </s> add     # write all aliases and their entities and occurrences to file
    with open(PRIOR_PROB, mode='w', encoding='utf8') as outputfile:
          map_alias_to_link[alias] = alias_dict
  
  def _read_wikipedia():
      """ Read the XML wikipedia data """

  
      # with bz2.open('C:/Users/Sofie/Documents/data/wikipedia/enwiki-20190320-pages-articles-multistream-index.txt.bz2', mode='rb') as file:
      with bz2.open('C:/Users/Sofie/Documents/data/wikipedia/enwiki-20190320-pages-articles-multistream.xml.bz2', mode='rb') as file:
          line = file.readline()
          cnt = 1
keep keep keep keep replace keep keep keep keep keep
 poc with few entities and collecting aliases from the WP links 
examples/pipeline/wikidata_entity_linking.py