nguage: Language used in sentences. Only supports English (en) and Japanese (ja) for now. Defaults to en return_sentence_level_score: An indication of whether sentence-level EED score is to be returned. alpha: optimal jump penalty, penalty for jumps between characters rho: coverage cost, penalty for repetition of characters deletion: penalty for deletion of character insertion: penalty for insertion or substitution of character Return: Extended edit distance score as a tensor Example: >>> from torchmetrics.functional.text import extended_edit_distance >>> preds = ["this is the prediction", "here is an other sample"] >>> target = ["this is the reference", "here is another one"] >>> extended_edit_distance(preds=preds, target=target) tensor(0.3078) References: [1] P. Stanchev, W. Wang, and H. Ney, “EED: Extended Edit Distance Measure for Machine Translation”, submitted to WMT 2019. `ExtendedEditDistance`_ )