liblevenshtein 4.0.0
A library for generating Finite State Transducers based on Levenshtein Automata.
Loading...
Searching...
No Matches
transposition_distance.h
Go to the documentation of this file.
1#ifndef LIBLEVENSHTEIN_DISTANCE_TRANSPOSITION_DISTANCE_H
2#define LIBLEVENSHTEIN_DISTANCE_TRANSPOSITION_DISTANCE_H
3
4#include <string>
5
7
9
16public:
17 auto between(std::string v, std::string w) -> std::size_t override;
18};
19
20} // namespace liblevenshtein::distance
21
22#endif // LIBLEVENSHTEIN_DISTANCE_TRANSPOSITION_DISTANCE_H
Memoizes the distance between pairs of terms.
Computes the standard Levenshtein distance extended with the elementary operation of transposition.
auto between(std::string v, std::string w) -> std::size_t override
Measures the edit distance between two terms.
void query(ll::Dawg *dawg, const std::string &query_term, std::size_t max_distance)
Definition main.cpp:25
Memoized, recursive distance metrics typically used to evaluate the correctness of Levenshtein automa...