docstr: Given an entity data dictionary that contains some linking data (ex. title or ID), additional information (ex. description, aliases etc.) is added to the given entity dictionary
docstr_tok: ["Given","an","entity","data","dictionary","that","contains","some","linking","data","(","ex",".","title","or","ID",")",",","additional","information","(","ex",".","description",",","aliases","etc",".",")","is","added","to","the","given","entity","dictionary"]
code: def get_data_for_entity(self, entity_data):
      """Given an entity data dictionary that contains some linking data (ex. title or ID), additional information (ex. description, aliases etc.) is added to the given entity dictionary"""
      data = self.data
      title = entity_data["wikipedia_title"]
  
      if "wikidata_info" in data[title]:
          if ("aliases" in data[title]["wikidata_info"]) and (
              data[title]["wikidata_info"]["aliases"]
          ) is not None:
              aliases = [
                  alias
                  for alias in data[title]["wikidata_info"]["aliases"]
                  if alias not in emoji.UNICODE_EMOJI
              ]
          else:
              aliases = None
      else:
          aliases = None
  
      entity_data["aliases"] = aliases
  
      sents = []
  
      for k in range(0, 10):
          key = "sent_desc_{}".format(k + 1)
          sents.append(data[title].get(key, ""))
  
      entity_data["sentences"] = sents
  
      return entity_data
  
imports: import pickle
  import emoji
label_desc: Use image node_id 2 for calling the Wikimedia_Data_Fetcher obj's underlying member method code with example usage: obj.get_data_for_entity(entity_data) and returns: entity_data