diff options
Diffstat (limited to 'src/data/corpus.cpp')
-rw-r--r-- | src/data/corpus.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/data/corpus.cpp b/src/data/corpus.cpp index 850d5754..b5df6aef 100644 --- a/src/data/corpus.cpp +++ b/src/data/corpus.cpp @@ -61,7 +61,10 @@ Corpus::Corpus(Ptr<Config> options, bool translate) for(size_t i = 0; i < paths_.size(); ++i) { Ptr<Vocab> vocab = New<Vocab>(); int vocSize = vocab->loadOrCreate("", paths_[i], maxVocabs[i]); - LOG(info, "[data] Setting vocabulary size for input {} to {}", i, vocSize); + LOG(info, + "[data] Setting vocabulary size for input {} to {}", + i, + vocSize); options_->get()["dim-vocabs"][i] = vocSize; options_->get()["vocabs"].push_back(paths_[i] + ".yml"); @@ -76,7 +79,10 @@ Corpus::Corpus(Ptr<Config> options, bool translate) Ptr<Vocab> vocab = New<Vocab>(); int vocSize = vocab->loadOrCreate(vocabPaths[i], paths_[i], maxVocabs[i]); - LOG(info, "[data] Setting vocabulary size for input {} to {}", i, vocSize); + LOG(info, + "[data] Setting vocabulary size for input {} to {}", + i, + vocSize); options_->get()["dim-vocabs"][i] = vocSize; vocabs_.emplace_back(vocab); |