This commit is contained in:
ustctf 2015-11-08 15:14:58 +08:00
Родитель 63d45a61d2
Коммит 99ebf2e3e2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);