verifyExplanation

fun verifyExplanation(q: String, doc: Int, score: Float, deep: Boolean, expl: Explanation)

Assert that an explanation has the expected score, and optionally that its sub-details max/sum/factor match to that score.

Parameters

q

String representation of the query for assertion messages

doc

Document ID for assertion messages

score

Real score value of doc with query q

deep

indicates whether a deep comparison of sub-Explanation details should be executed

expl

The Explanation to match against score