diff options
-rw-r--r-- | kgramstats.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kgramstats.cpp b/kgramstats.cpp index d94ae06..933165a 100644 --- a/kgramstats.cpp +++ b/kgramstats.cpp | |||
@@ -200,8 +200,6 @@ kgramstats::kgramstats(std::string corpus, int maxK) | |||
200 | const char* replacement = aspell_string_enumeration_next(elements); | 200 | const char* replacement = aspell_string_enumeration_next(elements); |
201 | if (replacement != NULL) | 201 | if (replacement != NULL) |
202 | { | 202 | { |
203 | aspell_speller_store_replacement(spell_checker, canonical.c_str(), canonical.size(), replacement, strlen(replacement)); | ||
204 | |||
205 | std::string sugrep(replacement); | 203 | std::string sugrep(replacement); |
206 | canonical_form[canonical] = sugrep; | 204 | canonical_form[canonical] = sugrep; |
207 | 205 | ||
@@ -210,8 +208,6 @@ kgramstats::kgramstats(std::string corpus, int maxK) | |||
210 | words.emplace(sugrep, sugrep); | 208 | words.emplace(sugrep, sugrep); |
211 | } | 209 | } |
212 | } else { | 210 | } else { |
213 | aspell_speller_add_to_session(spell_checker, canonical.c_str(), canonical.size()); | ||
214 | |||
215 | words.emplace(canonical, canonical); | 211 | words.emplace(canonical, canonical); |
216 | canonical_form[canonical] = canonical; | 212 | canonical_form[canonical] = canonical; |
217 | } | 213 | } |