about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-02-06 13:34:20 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-02-06 13:34:20 -0500
commit0801fae5aa3b83380da403c86ba80a7de657a07a (patch)
treee2d046bb4afedd3cf00c4df3a296e6603685e03e
parent122b417694ce6211142d1e245e9c8dcb5b78c6ce (diff)
downloadrawr-ebooks-0801fae5aa3b83380da403c86ba80a7de657a07a.tar.gz
rawr-ebooks-0801fae5aa3b83380da403c86ba80a7de657a07a.tar.bz2
rawr-ebooks-0801fae5aa3b83380da403c86ba80a7de657a07a.zip
Increased canonical maxK to 5
-rw-r--r--ebooks.cpp2
-rw-r--r--gen.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/ebooks.cpp b/ebooks.cpp index 1dfd474..8582919 100644 --- a/ebooks.cpp +++ b/ebooks.cpp
@@ -64,7 +64,7 @@ int main(int argc, char** args)
64 std::cout << "Preprocessing corpus..." << std::endl; 64 std::cout << "Preprocessing corpus..." << std::endl;
65 rawr kgramstats; 65 rawr kgramstats;
66 kgramstats.addCorpus(corpus); 66 kgramstats.addCorpus(corpus);
67 kgramstats.compile(4); 67 kgramstats.compile(5);
68 kgramstats.setTransformCallback([&] (std::string, std::string form) { 68 kgramstats.setTransformCallback([&] (std::string, std::string form) {
69 size_t pos = form.find("$name$"); 69 size_t pos = form.find("$name$");
70 if (pos != std::string::npos) 70 if (pos != std::string::npos)
diff --git a/gen.cpp b/gen.cpp index d802b14..4e19f84 100644 --- a/gen.cpp +++ b/gen.cpp
@@ -68,7 +68,7 @@ int main(int argc, char** args)
68 std::cout << "Preprocessing corpus..." << std::endl; 68 std::cout << "Preprocessing corpus..." << std::endl;
69 rawr kgramstats; 69 rawr kgramstats;
70 kgramstats.addCorpus(corpus); 70 kgramstats.addCorpus(corpus);
71 kgramstats.compile(4); 71 kgramstats.compile(5);
72 kgramstats.setTransformCallback([&] (std::string, std::string form) { 72 kgramstats.setTransformCallback([&] (std::string, std::string form) {
73 size_t pos = form.find("$name$"); 73 size_t pos = form.find("$name$");
74 if (pos != std::string::npos) 74 if (pos != std::string::npos)