{ "task": { "id": "case_30", "name": "numeric_range_tagging", "summary": "Tags numeric tokens in a sequence based on whether they fall within a given range.", "examples": [ { "input": [ "BOS", "14", "26", "8", "21", "18", "15", "8", "27", "14" ], "output": [ "BOS", true, false, false, false, true, true, false, false, true ] }, { "input": [ "BOS", "5", "25", "29", "18", "18", "3", "27", "11", "15" ], "output": [ "BOS", false, false, false, true, true, false, false, true, true ] }, { "input": [ "BOS", "4", "23", "6", "6", "17", "7", "7", "22", "21" ], "output": [ "BOS", false, false, false, false, true, false, false, false, false ] }, { "input": [ "BOS", "1", "7", "27", "0", "19", "5", "28", "8", "19" ], "output": [ "BOS", false, false, false, false, true, false, false, false, true ] }, { "input": [ "BOS", "3", "10", "28", "27", "1", "3", "19", "9", "13" ], "output": [ "BOS", false, true, false, false, false, false, true, false, true ] } ], "is_categorical": true }, "program": "range_tagging = rasp.Map(lambda x: lower_bound <= int(x) <= upper_bound if x.isdigit() else False, sop)\nreturn range_tagging", "components": [ { "id": "L0_MLP", "hook": "blocks.0.mlp.hook_post", "role": { "tag": "INDICATOR", "note": "Applies a per-token range test and outputs a boolean tag for each position." }, "rasp_vars": [ "range_tagging" ], "labels": [ "map_1" ] } ] }