File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,7 @@ void SortVocab() {
163
163
train_words += vocab [a ].cn ;
164
164
}
165
165
}
166
- vocab_size ++ ;
167
- vocab = (struct vocab_word * )realloc (vocab , vocab_size * sizeof (struct vocab_word ));
166
+ vocab = (struct vocab_word * )realloc (vocab , (vocab_size + 1 ) * sizeof (struct vocab_word ));
168
167
// Allocate memory for the binary tree construction
169
168
for (a = 0 ; a < vocab_size ; a ++ ) {
170
169
vocab [a ].code = (char * )calloc (MAX_CODE_LENGTH , sizeof (char ));
@@ -631,7 +630,7 @@ int main(int argc, char **argv) {
631
630
printf ("\t-hs <int>\n" );
632
631
printf ("\t\tUse Hierarchical Softmax; default is 1 (0 = not used)\n" );
633
632
printf ("\t-negative <int>\n" );
634
- printf ("\t\tNumber of negative examples; default is 5 (0 = not used)\n" );
633
+ printf ("\t\tNumber of negative examples; default is 0, common values are 5 - 10 (0 = not used)\n" );
635
634
printf ("\t-threads <int>\n" );
636
635
printf ("\t\tUse <int> threads (default 1)\n" );
637
636
printf ("\t-min-count <int>\n" );
You can’t perform that action at this time.
0 commit comments