jina.executors.evaluators.text

class jina.executors.evaluators.text.BaseTextEvaluator(*args, **kwargs)[source]

Bases: jina.executors.evaluators.BaseEvaluator

A BaseTextEvaluator evaluates the difference between actual and desired text

evaluate(actual, desired, *args, **kwargs)[source]

” :type actual: Any :param actual: the content of the document :type desired: Any :param desired: the expected content of the document :return the evaluation metric value for the request document

Return type

float