diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-02-28 18:37:26 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-02-28 18:37:26 -0500 |
commit | a1265a74c94d678405a561a2fb21dd2b8025d31c (patch) | |
tree | 393fb2bc15e0d2376694d4d37442eabfe3b54e16 | |
parent | 717e6c62020f2408c3a72ab87e0cba410acc17e4 (diff) | |
download | rawr-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.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 | } |