pub fn get_alignments<A, B>(a: &[A], b: &[B]) -> (Alignment, Alignment)Expand description
Aligns two token sequences with the default Fold comparison form.
The first result maps a indices to b indices. The second result maps
b indices to a indices.
ยงExamples
use token_align::get_alignments;
let a = ["New York"];
let b = ["New", "York"];
assert_eq!(
get_alignments(&a, &b),
(vec![vec![0, 1]], vec![vec![0], vec![0]])
);