@@ -712,7 +712,7 @@ void anyks::ASpell::spell(wstring & text, const u_short options, vector <vector
712712 // Если текст передан
713713 if (!text.empty () && (this ->dict != nullptr ) && (this ->alm != nullptr ) && (this ->alphabet != nullptr ) && (this ->tokenizer != nullptr )){
714714 // Объект левенштейна
715- lev_t levenshtein ;
715+ lev_t algorithms ;
716716 // Предыдущее слово
717717 word_t lastWord = L" " ;
718718 // Позиция добавления слов
@@ -867,9 +867,9 @@ void anyks::ASpell::spell(wstring & text, const u_short options, vector <vector
867867 // Устанавливаем полученное слово
868868 hypothesis.word = (* this ->dict ->word (bwrd.first ));
869869 // Выполняем расчёт дистанции Дамерау-Левенштейна
870- hypothesis.lev = levenshtein .damerau (bwrd.second .first , bwrd.second .second );
870+ hypothesis.lev = algorithms .damerau (bwrd.second .first , bwrd.second .second );
871871 // Выполняем расчёт значения Танимото
872- hypothesis.tmo = levenshtein .tanimoto (bwrd.second .first , bwrd.second .second );
872+ hypothesis.tmo = algorithms .tanimoto (bwrd.second .first , bwrd.second .second );
873873 // Добавляем гипотезу в сборщик гипотез
874874 dmp.once (hypothesis, parts.size (), pos2);
875875 }
@@ -922,7 +922,7 @@ void anyks::ASpell::spell(wstring & text, const u_short options, vector <vector
922922 hypotheses.at (i) = hypothesis;
923923 }
924924 // Добавляем список гипотез в список
925- pos1 = dmp.add (hypotheses, levenshtein .damerau (word, text), levenshtein .tanimoto (word, text), pos1);
925+ pos1 = dmp.add (hypotheses, algorithms .damerau (word, text), algorithms .tanimoto (word, text), pos1);
926926 }
927927 }
928928 // Если разрешено выполнять сплиты
@@ -969,7 +969,7 @@ void anyks::ASpell::spell(wstring & text, const u_short options, vector <vector
969969 hypotheses.at (i) = hypothesis;
970970 }
971971 // Добавляем список гипотез в список
972- pos1 = dmp.add (hypotheses, levenshtein .damerau (word, text), levenshtein .tanimoto (word, text), pos1);
972+ pos1 = dmp.add (hypotheses, algorithms .damerau (word, text), algorithms .tanimoto (word, text), pos1);
973973 }
974974 }
975975 // Если сплит выполнять не удалось
@@ -1050,7 +1050,7 @@ void anyks::ASpell::analyze(const wstring & text, const u_short options, vector
10501050 // Очищаем список анализируемых слов
10511051 info.clear ();
10521052 // Объект левенштейна
1053- lev_t levenshtein ;
1053+ lev_t algorithms ;
10541054 // Предыдущее слово
10551055 word_t lastWord = L" " ;
10561056 // Позиция добавления слов
@@ -1216,9 +1216,9 @@ void anyks::ASpell::analyze(const wstring & text, const u_short options, vector
12161216 // Устанавливаем полученное слово
12171217 hypothesis.word = (* this ->dict ->word (bwrd.first ));
12181218 // Выполняем расчёт дистанции Дамерау-Левенштейна
1219- hypothesis.lev = levenshtein .damerau (bwrd.second .first , bwrd.second .second );
1219+ hypothesis.lev = algorithms .damerau (bwrd.second .first , bwrd.second .second );
12201220 // Выполняем расчёт значения Танимото
1221- hypothesis.tmo = levenshtein .tanimoto (bwrd.second .first , bwrd.second .second );
1221+ hypothesis.tmo = algorithms .tanimoto (bwrd.second .first , bwrd.second .second );
12221222 // Добавляем гипотезу в сборщик гипотез
12231223 dmp.once (hypothesis, parts.size (), pos2);
12241224 }
@@ -1271,7 +1271,7 @@ void anyks::ASpell::analyze(const wstring & text, const u_short options, vector
12711271 hypotheses.at (i) = hypothesis;
12721272 }
12731273 // Добавляем список гипотез в список
1274- pos1 = dmp.add (hypotheses, levenshtein .damerau (word, text), levenshtein .tanimoto (word, text), pos1);
1274+ pos1 = dmp.add (hypotheses, algorithms .damerau (word, text), algorithms .tanimoto (word, text), pos1);
12751275 }
12761276 }
12771277 // Если разрешено выполнять сплиты
@@ -1318,7 +1318,7 @@ void anyks::ASpell::analyze(const wstring & text, const u_short options, vector
13181318 hypotheses.at (i) = hypothesis;
13191319 }
13201320 // Добавляем список гипотез в список
1321- pos1 = dmp.add (hypotheses, levenshtein .damerau (word, text), levenshtein .tanimoto (word, text), pos1);
1321+ pos1 = dmp.add (hypotheses, algorithms .damerau (word, text), algorithms .tanimoto (word, text), pos1);
13221322 }
13231323 }
13241324 // Если сплит выполнять не удалось
0 commit comments