Skip to content

Support non-extension mode #62

@bendichter

Description

@bendichter

Hi @neuromechanist thanks for your work on this. I'm testing it out for our applications.

Trying this out a few times on our data: reward_time: Reward delivery. The animal received a drop of juice or food for successful completion of the task (seconds)

I think the ideal annotation would be: "Sensory-event, Experiment-stimulus, Gustatory-presentation, Feedback, Reward, Time-value/# s"

The bot gets close sometimes, but it often uses custom extensions, which I don't like. Would it be possible to provide a mode where you force the agent to only use defined terms?

(base) bdichter@MacBook-Pro-133 dev % hedit annotate "reward_time: Reward delivery. The animal received a drop of juice or food for successful completion of the task (seconds)"
Generating HED annotation (api mode)...
╭──────────────────────────────────────── HED Annotation - SUCCESS ────────────────────────────────────────╮
│ Annotation:                                                                                              │
│   Sensory-event, (Task-stimulus-role, Reward), (Animal-agent, Animal), Gustatory-presentation            │
│                                                                                                          │
│ Status: [green][x] Valid[/] [green][x] Faithful[/] [green][x] Complete[/] [dim](4 validation             │
│ attempts)[/]                                                                                             │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
(base) bdichter@MacBook-Pro-133 dev % hedit annotate "reward_time: Reward delivery. The animal received a drop of juice or food for successful completion of the task (seconds)"
Generating HED annotation (api mode)...
╭──────────────────────────────────────── HED Annotation - SUCCESS ────────────────────────────────────────╮
│ Annotation:                                                                                              │
│   Agent-action, Sensory-event, Experimental-stimulus, Feedback, Positive, (Animal/Receiver),             │
│ ((Human-agent, Experimenter), (Reward, (Gustatory-presentation, (Item/Juice))))                          │
│                                                                                                          │
│ Status: [green][x] Valid[/] [green][x] Faithful[/] [green][x] Complete[/] [dim](4 validation             │
│ attempts)[/]                                                                                             │
│                                                                                                          │
│ Warnings:                                                                                                │
│   - [TAG_EXTENDED] WARNING: [TAG_EXTENDED] Tag extensions found for [Animal/Receiver, Item/Juice] in     │
│ "Agent-action, Sensory-event, Experimental-stimulus, Feedback, Positive, (Animal/Receiver),              │
│ ((Human-agent, Experimenter), (Reward, (Gustatory-presentation, (Item/Juice))))".  (For more information │
│ on this HED warning, see                                                                                 │
│ https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#tag-extended.)                        │
│                                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
(base) bdichter@MacBook-Pro-133 dev % hedit annotate "reward_time: Reward delivery. The animal received a drop of juice or food for successful completion of the task (seconds)"
Generating HED annotation (api mode)...
╭──────────────────────────────────────── HED Annotation - SUCCESS ────────────────────────────────────────╮
│ Annotation:                                                                                              │
│   Event, Feedback, Task-event-role/Task-success, (Animal), (Item/Juice, Or, Item/Food)                   │
│                                                                                                          │
│ Status: [green][x] Valid[/] [green][x] Faithful[/] [green][x] Complete[/] [dim](3 validation             │
│ attempts)[/]                                                                                             │
│                                                                                                          │
│ Warnings:                                                                                                │
│   - [TAG_EXTENDED] WARNING: [TAG_EXTENDED] Tag extensions found for [Task-event-role/Task-success,       │
│ Item/Juice, Item/Food] in "Event, Feedback, Task-event-role/Task-success, (Animal), (Item/Juice, Or,     │
│ Item/Food)".  (For more information on this HED warning, see                                             │
│ https://hed-specification.readthedocs.io/en/latest/Appendix_B.html#tag-extended.)                        │
│                                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions