def get_object(self, _, val):
    """Get the object of a slot - the value or primary slot filler."""
    if not self.is_nested_frame(val):
      return val
    elif self.is_qualified_relation_frame(val):
      return self.qualified_relation_object(val)
Get the object of a slot - the value or primary slot filler.
language/templama/sling2facts.py