opengamedata / opengamedata-core

Python framework for extracting features from OpenGameData event datasets.
https://opengamedata.fielddaylab.wisc.edu/
MIT License
1 stars 3 forks source link

Journalism: SnippetsSubmitted #111

Closed LswaN58 closed 10 months ago

LswaN58 commented 12 months ago

This should be a per-level feature. If a publish_story_click event occurred in the given level, it returns the list of all snippet_id's in the snippet_list element of event_data.

For reference, the event_data for publish_story_click events is:

"event_data" : {
    "snippet_list": [
        {
            "snippet_id":"str",
            "snippet_type":"enum(IMAGE, QUOTE)",
            "snippet_quality":"enum(BAD, GOOD, GREAT)",
            "snippet_attributes":"List[enum(COLOR, FACTS, USEFUL)]",
            "is_selectable":"bool"
        },
        {
            "snippet_id":"str",
            "snippet_type":"enum(IMAGE, QUOTE)",
            "snippet_quality":"enum(BAD, GOOD, GREAT)",
            "snippet_attributes":"List[enum(COLOR, FACTS, USEFUL)]",
            "is_selectable":"bool"
        },
        ...
    ]
    "layout": [
        {
            "type": "enum(ANY,PICTURE)",
            "is_wide": "bool",
            "assigned_snippet": "Optional[snippet_id]"
        },
        {
            "type": "enum(ANY,PICTURE)",
            "is_wide": "bool",
            "assigned_snippet": "Optional[snippet_id]"
        },
        ...
    ]
}