Class: Leva::RunnerResult

Inherits:
ApplicationRecord show all
Defined in:
app/models/leva/runner_result.rb

Instance Method Summary collapse

Instance Method Details

#ground_truthString

Returns The ground truth for this runner result.

Returns:

  • (String)

    The ground truth for this runner result



46
47
48
# File 'app/models/leva/runner_result.rb', line 46

def ground_truth
  @ground_truth ||= runner&.ground_truth(self)
end

#parsed_predictionsArray<String>

Returns The parsed draft responses.

Returns:

  • (Array<String>)

    The parsed draft responses



41
42
43
# File 'app/models/leva/runner_result.rb', line 41

def parsed_predictions
  @parsed_predictions ||= runner&.parsed_predictions(self) || []
end