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

Bases: jina.executors.evaluators.text.BaseTextEvaluator

A TextLengthEvaluator evaluates the different lengths between actual and desired text

metric = 'LengthDiff'

Get the name of the evaluation metric

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

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

Return type