  
      def get_entity_name(self, KnowledgeBase kb):
          return kb.strings[self.entity_hash]
  
      def get_alias_name(self, KnowledgeBase kb):
          return kb.strings[self.alias_hash]
  
      property prior_prob:
          def __get__(self):
              return self.prior_prob
  
 
</s> remove     def get_entity_name(self, KnowledgeBase kb):
        return kb.strings[self.entity_hash]
 </s> add     property kb_id_:
        """RETURNS (unicode): ID of this entity in the KB"""
        def __get__(self):
            return self.kb.strings[self.entity_hash]

    property kb_id:
        """RETURNS (uint64): hash of the entity's KB ID"""
        def __get__(self):
            return self.entity_hash

    property alias_:
        """RETURNS (unicode): ID of the original alias"""
        def __get__(self):
            return self.kb.strings[self.alias_hash] </s> remove     def __init__(self, entity_hash, alias_hash, prior_prob):
 </s> add     def __init__(self, KnowledgeBase kb, entity_hash, alias_hash, prior_prob):
        self.kb = kb
    property alias:
        """RETURNS (uint64): hash of the alias"""
        def __get__(self):
            return self.alias_hash
  
      def get_entity_name(self, KnowledgeBase kb):
          return kb.strings[self.entity_hash]
  
    property alias:
        """RETURNS (uint64): hash of the alias"""
        def __get__(self):
            return self.alias_hash
    property alias:
        """RETURNS (uint64): hash of the alias"""
        def __get__(self):
            return self.alias_hash
  
      property prior_prob:
          def __get__(self):
              return self.prior_prob
  
keep keep keep keep replace replace keep keep keep keep keep
 property getters and keep track of KB internally 
spacy/kb.pyx