From 4b4de4df79fdd6fdc9f53648cfa56524365cc415 Mon Sep 17 00:00:00 2001 From: moonbeamcelery Date: Wed, 25 Oct 2023 16:41:47 +0000 Subject: [PATCH] Remove bug comment Signed-off-by: moonbeamcelery --- nlpcore/src/latin/prediction.cppm | 1 - 1 file changed, 1 deletion(-) diff --git a/nlpcore/src/latin/prediction.cppm b/nlpcore/src/latin/prediction.cppm index d504611..254ab62 100644 --- a/nlpcore/src/latin/prediction.cppm +++ b/nlpcore/src/latin/prediction.cppm @@ -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_;