Change IO.
This commit is contained in:
Родитель
63d45a61d2
Коммит
99ebf2e3e2
|
@ -77,7 +77,7 @@ int64_t LoadVocab(Option *opt, Dictionary *dictionary, HuffmanEncoder *huffman_e
|
||||||
total_words = 0;
|
total_words = 0;
|
||||||
for (int i = 0; i < dictionary->Size(); ++i)
|
for (int i = 0; i < dictionary->Size(); ++i)
|
||||||
total_words += dictionary->GetWordInfo(i)->freq;
|
total_words += dictionary->GetWordInfo(i)->freq;
|
||||||
printf("Words in Corpus %I64d\n", total_words);
|
printf("Words in corpus %I64d\n", total_words);
|
||||||
huffman_encoder->BuildFromTermFrequency(dictionary);
|
huffman_encoder->BuildFromTermFrequency(dictionary);
|
||||||
fclose(fid);
|
fclose(fid);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче