Final Changes #13

Merged
Trianta merged 4 commits from dev into master 2023-12-08 23:47:38 -06:00
Showing only changes of commit cf56912436 - Show all commits

View File

@ -116,14 +116,7 @@ void Generator::Train(void) {
std::cout << "[Setup - Info] Begin training" << std::endl; std::cout << "[Setup - Info] Begin training" << std::endl;
for (const auto& word : words) { for (const auto& word : words) {
if (word.size() < setup.prefixLength) { trie.Insert(word);
trie.Insert(word);
continue;
} else {
for (int i = 0; i < word.size() - setup.prefixLength; ++i) {
trie.Insert(word.substr(i, setup.prefixLength));
}
}
} }
std::cout << "[Setup - Info] Finished training" << std::endl; std::cout << "[Setup - Info] Finished training" << std::endl;
} }