Expand description
Maps overlaps between token sequences and between character positions.
The default comparison form removes common subword markers and applies
pinned Unicode compatibility decomposition. Use Exact or implement
Normalizer when the input needs different comparison rules.
Structs§
- Exact
- A comparison form that copies each token unchanged.
- Fold
- The default marker removal and Unicode comparison form.
Traits§
- Normalizer
- Produces the comparison form of one token.
Functions§
- get_
alignments - Aligns two token sequences with the default
Foldcomparison form. - get_
alignments_ with - Aligns two token sequences with a caller-provided comparison form.
- get_
charmap - Maps Unicode scalar positions in
ato positions inband back. - get_
charmap_ with - Maps Unicode scalar positions with a caller-provided comparison form.