Registry / Library

library · v0.1.1
Sequence Edit Distance
Compute unit-cost Levenshtein distance between two token ID sequences using one dynamic programming row.
Use Sequence Edit Distance
use vendor::sequence_edit_distance::sequence_edit_distance;
Run the example
nest demo sequence_edit_distance@0.1.1
blyxc native-run sequence_edit_distance-demo/main.blyx
Example source and expected output
use vendor::sequence_edit_distance::sequence_edit_distance;
fn main() {
println!(sequence_edit_distance([1,2,3],[2,3,4]));
}
Expected output
2
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 17dd900c0e | 5a25fa835302eefc44c669181b669f06034ca66a9e41f9a0a5c4b5fffed6d20a |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | d951e6b0d73d6fefbcc18b180e55ace1fb6c71f48c0a8faf33c099fb7d38718f |