Skip to content

Commit

Permalink
Remove bug comment
Browse files Browse the repository at this point in the history
Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>
  • Loading branch information
moonbeamcelery committed Oct 25, 2023
1 parent d5bc7e0 commit 4b4de4d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion nlpcore/src/latin/prediction.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ void fuzzySearchRecursive(
auto prefixCost = 0.0; // Is initialized in next line only if isWordPrefix results in true
// TODO: improve prefix searching performance (run time and stop detection)
// Eligible as prefix candidate? searching for prefix, current word and query word same until `token_index`, and cost at word size within bound.
// [Bug?] editDistanceAt at this stage is either 0 or leftover from last time we searched till word.size().
auto isWordPrefix = params.search_type_ == LatinFuzzySearchType::ProximityOrPrefix &&
state.isPrefixAt(token_index) &&
(prefixCost = state.editDistanceAt(word.size())) <= state.weights_.max_cost_sum_;
Expand Down

0 comments on commit 4b4de4d

Please sign in to comment.