From a1265a74c94d678405a561a2fb21dd2b8025d31c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 28 Feb 2016 18:37:26 -0500 Subject: Removed aspell session editing This wasn't really necessary since it was completely automated anyway, and it caused crashes for reasons that I haven't looked into with some bad corpuses. --- kgramstats.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'kgramstats.cpp') 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) const char* replacement = aspell_string_enumeration_next(elements); if (replacement != NULL) { - aspell_speller_store_replacement(spell_checker, canonical.c_str(), canonical.size(), replacement, strlen(replacement)); - std::string sugrep(replacement); canonical_form[canonical] = sugrep; @@ -210,8 +208,6 @@ kgramstats::kgramstats(std::string corpus, int maxK) words.emplace(sugrep, sugrep); } } else { - aspell_speller_add_to_session(spell_checker, canonical.c_str(), canonical.size()); - words.emplace(canonical, canonical); canonical_form[canonical] = canonical; } -- cgit 1.4.1