about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-02-28 18:37:26 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-02-28 18:37:26 -0500
commita1265a74c94d678405a561a2fb21dd2b8025d31c (patch)
tree393fb2bc15e0d2376694d4d37442eabfe3b54e16
parent717e6c62020f2408c3a72ab87e0cba410acc17e4 (diff)
downloadrawr-ebooks-a1265a74c94d678405a561a2fb21dd2b8025d31c.tar.gz
rawr-ebooks-a1265a74c94d678405a561a2fb21dd2b8025d31c.tar.bz2
rawr-ebooks-a1265a74c94d678405a561a2fb21dd2b8025d31c.zip
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.
-rw-r--r--kgramstats.cpp4
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 }