liblevenshtein 4.0.0
A library for generating Finite State Transducers based on Levenshtein Automata.
|
Removes (unsubsumes) all Positions from a State that are subsumed by another Position within the same State. More...
#include <unsubsume.h>
Public Member Functions | |
UnsubsumeFn (SubsumesFn subsumes) | |
Constructs a new UnsubsumeFn that uses a SubsumesFn to filter-out subsumed Positions from a State. | |
void | operator() (State *state, std::size_t query_length) |
Removes (unsubsumes) all Positions from a State that are subsumed by another Position within the same State. | |
Private Attributes | |
SubsumesFn | subsumes |
Determines whether one Position subsumes another given the maximum edit distance to consider. | |
Removes (unsubsumes) all Positions from a State that are subsumed by another Position within the same State.
Definition at line 20 of file unsubsume.h.
liblevenshtein::UnsubsumeFn::UnsubsumeFn | ( | SubsumesFn | subsumes | ) |
Constructs a new UnsubsumeFn that uses a SubsumesFn to filter-out subsumed Positions from a State.
subsumes | Determines whether one Position subsumes another given the maximum edit distance to consider. |
Definition at line 8 of file unsubsume.cpp.
Removes (unsubsumes) all Positions from a State that are subsumed by another Position within the same State.
state | State whose subsumed Positions are to be removed. |
query_length | Maximum edit distance to consider when matching spelling candidates. |
Definition at line 10 of file unsubsume.cpp.
References liblevenshtein::State::begin(), liblevenshtein::State::end(), liblevenshtein::Position::num_errors(), query(), and subsumes.
|
private |
Determines whether one Position subsumes another given the maximum edit distance to consider.
Definition at line 46 of file unsubsume.h.
Referenced by operator()().