Hello everyone, I'm failing to train my dialogue mgmt model. Please assist.
the error is
slot_class = Slot.resolve_by_type(slot_dict[slot_name].get("type"))
AttributeError: 'NoneType' object has no attribute 'get'
Here is the sample code that stores a student name
class ActionName(Action):
def name(self):
return "action_student_name"
def run(self, dispatcher, tracker, domain):
name = tracker.get_slot('student_name')
student_name = next(tracker.get_latest_entity_values('name'), None)
if not student_name:
student_name = tracker.latest_message.get('text')
return [SlotSet('student_name', student_name)]