liblevenshtein
4.0.0
A library for generating Finite State Transducers based on Levenshtein Automata.
Loading...
Searching...
No Matches
merge_and_split_distance.h
Go to the documentation of this file.
1
#ifndef LIBLEVENSHTEIN_DISTANCE_MERGE_AND_SPLIT_DISTANCE_H
2
#define LIBLEVENSHTEIN_DISTANCE_MERGE_AND_SPLIT_DISTANCE_H
3
4
#include <string>
5
6
#include "
liblevenshtein/distance/memoized_distance.h
"
7
8
namespace
liblevenshtein::distance
{
9
15
class
MergeAndSplitDistance
:
public
MemoizedDistance
{
16
public
:
17
18
auto
between
(std::string
v
, std::string
w
) -> std::size_t
override
;
19
};
20
21
}
// namespace liblevenshtein::distance
22
23
#endif
// LIBLEVENSHTEIN_DISTANCE_MERGE_AND_SPLIT_DISTANCE_H
liblevenshtein::distance::MemoizedDistance
Memoizes the distance between pairs of terms.
Definition
memoized_distance.h:16
liblevenshtein::distance::MergeAndSplitDistance
Computes the standard Levenshtein distance extended with two additional elementary operations: (1) me...
Definition
merge_and_split_distance.h:15
liblevenshtein::distance::MergeAndSplitDistance::between
auto between(std::string v, std::string w) -> std::size_t override
Measures the edit distance between two terms.
Definition
merge_and_split_distance.cpp:6
query
void query(ll::Dawg *dawg, const std::string &query_term, std::size_t max_distance)
Definition
main.cpp:25
memoized_distance.h
liblevenshtein::distance
Memoized, recursive distance metrics typically used to evaluate the correctness of Levenshtein automa...
Definition
namespaces.dox:16
src
liblevenshtein
distance
merge_and_split_distance.h
Generated by
1.10.0