Skip to content

Commit

Permalink
disable tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmuhs committed Mar 10, 2024
1 parent 4c06156 commit eaf6528
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions keyvi/include/keyvi/stringdistance/needleman_wunsch.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include "keyvi/stringdistance/distance_matrix.h"
#include "utf8.h"

#define ENABLE_TRACING
// #define ENABLE_TRACING
#include "keyvi/dictionary/util/trace.h"

namespace keyvi {
Expand Down Expand Up @@ -115,8 +115,7 @@ class NeedlemanWunsch final {
if (left_cutoff >= columns) {
// last character == exact match?
if (row > completion_row_ || input_sequence_.empty() ||
compare_sequence_[columns - 2] == input_sequence_.back()) {
//if (row > completion_row_ || input_sequence_.empty()) {
compare_sequence_[columns - 2] == input_sequence_.back()) {
intermediate_scores_[row] = intermediate_scores_[row - 1] + cost_function_.GetCompletionCost();
} else {
intermediate_scores_[row] = intermediate_scores_[row - 1] + cost_function_.GetInsertionCost(codepoint);
Expand Down

0 comments on commit eaf6528

Please sign in to comment.