Skip to contents

Parse one scored response

Usage

score_parse(scoring_system, response, keys, block = "pairwise")

## S7 method for class <curriculum::ScoringSystem>
score_parse(scoring_system, response, keys, block = "pairwise")

## S7 method for class <curriculum::ContinuousScoringSystem>
score_parse(scoring_system, response, keys, block = "pairwise")

Arguments

scoring_system

ScoringSystem object.

response

Character: Raw JSON response, or NA.

keys

Character: Response keys expected.

block

Character {"pairwise", "joint"}: Prompt block structure.

Value

data.frame of key, value, label, rationale. A malformed or missing response yields NA values rather than an error.

Author

EDG