ai_utils/knowledge/symbol.py
def evaluate(self, model):
        """ Class Representing a Prepositional Symbol

        Args:
            model
        Raises:
            Exception : if the symbol was not found in the model
        """
        try:
            return bool(model[self.name])
        except KeyError:
            raise Exception(f"variable {self.name} not in model")
 Class Representing a Prepositional Symbol

        Args:
            model
        Raises:
            Exception : if the symbol was not found in the model
        
Class Representing a Prepositional Symbol
Args:
model
Raises:
Exception : if the symbol was not found in the model
Class Representing a Prepositional Symbol Args : model Raises : Exception : if the symbol was not found in the model
def evaluate(self, model):
        try:
            return bool(model[self.name])
        except KeyError:
            raise Exception(f"variable {self.name} not in model")
def evaluate ( self , model ) : try : return bool ( model [ self . name ] ) except KeyError : raise Exception ( f"variable {self.name} not in model" )
Class Representing a Prepositional Symbol
Args:
model
Raises:
Exception : if the symbol was not found in the model
Class Representing a Prepositional Symbol Args : model Raises : Exception : if the symbol was not found in the model
""" Class Representing a Prepositional Symbol

        Args:
            model
        Raises:
            Exception : if the symbol was not found in the model
        """
self
model