File size: 1,958 Bytes
4b7c043 f86ebe7 9687465 4b7c043 51361fe 4b7c043 9687465 2827926 51361fe 4b7c043 aa8ede1 4b7c043 2827926 51361fe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
---
title: Normalized Edit Distance
emoji: π
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: apache-2.0
tags:
- evaluate
- metric
short_description: Normalized Edit Distance (NED)
description: >-
The Normalized Edit Distance (NED) is a metric used to quantify the
dissimilarity between two sequences, typically strings, by measuring the
minimum number of editing operations required to transform one sequence into
the other, normalized by the length of the longer sequence. The NED ranges
from 0 to 1, where 0 indicates identical sequences and 1 indicates completely
dissimilar sequences. It is particularly useful in tasks such as spell
checking, speech recognition, and OCR. The normalized edit distance can be
calculated using the formula: NED = (1 - (ED(pred, gt) / max(length(pred),
length(gt)))) Where: gt: ground-truth sequence pred: predicted sequence ED:
Edit Distance, the minimum number of editing operations (insertions,
deletions, substitutions) needed to transform one sequence into the other.
---
# Metric Card for NED
## Metric Description
The Normalized Edit Distance (NED) is a metric used to quantify the dissimilarity between two sequences, typically strings, by measuring the minimum number of editing operations required to transform one sequence into the other, normalized by the length of the longer sequence.
The NED ranges from 0 to 1, where 0 indicates identical sequences and 1 indicates completely dissimilar sequences.
It is particularly useful in tasks such as spell checking, speech recognition, and OCR. The normalized edit distance can be calculated using the formula:
NED = (1 - (ED(pred, gt) / max(length(pred), length(gt))))
Where:
gt: ground-truth sequence
pred: predicted sequence
ED: Edit Distance, the minimum number of editing operations (insertions, deletions, substitutions) needed to transform one sequence into the other. |