Skip to content

AttributeError: 'Annotation' object has no attribute 'slot' | dialoguekit v0.1.1 #277

@AliRiaz34

Description

@AliRiaz34

Several files in dialoguekit access annotation.slot instead of annotation.key, but slot is only defined on SlotValueAnnotation, not the parent Annotation class. Since DialogueAct.annotations is typed as List[SlotValueAnnotation] but nothing enforces this at runtime, passing plain Annotation objects (which only have .key) causes a crash.

This happens in these files

core/dialogue.py:164
nlg/nlg_template.py:139, 193, 204
nlg/template_from_training_data.py:51
platforms/flask_socket_platform.py:50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions