  
      # adding entities
      # kb.add_entity(entity=entity, prob=prob)
  
      # adding aliases
      # kb.add_alias(alias=alias, entities=[entity_0, entity_1, entity_2], probabilities=[0.6, 0.1, 0.2])
  
      print()
      print("kb size:", len(kb), kb.get_size_entities(), kb.get_size_aliases())
  
      return kb
 
</s> remove     # adding entities
    # kb.add_entity(entity=entity, prob=prob)
 </s> add     _add_entities(kb)
    _add_aliases(kb, max_entities_per_alias, min_occ) </s> remove     # _read_wikidata()
    _read_wikipedia()
 </s> add  </s> remove def create_kb(vocab):
 </s> add def create_kb(vocab, max_entities_per_alias, min_occ): </s> remove         return self._aliases_table.size() - 1 # not counting dummy element on index 0
 </s> add         return self._aliases_table.size() - 1 # not counting dummy element on index

    def get_alias_strings(self):
        return [self.vocab.strings[x] for x in self._alias_index][1:] # removing the dummy element on index 0
    # _read_wikidata()
    # _read_wikipedia()
  
      # adding entities
      # kb.add_entity(entity=entity, prob=prob)
  
    # _read_wikidata()
    # _read_wikipedia()
    # _read_wikidata()
    # _read_wikipedia()
  
      print()
      print("kb size:", len(kb), kb.get_size_entities(), kb.get_size_aliases())
  
      return kb
keep keep keep keep replace replace keep keep keep keep keep
 poc with few entities and collecting aliases from the WP links 
examples/pipeline/wikidata_entity_linking.py