@@ -53,7 +53,7 @@ int compare_tokens(const char *t1, const char *t2) {
5353// thresholds: [4]
5454// thresholds_lower: [1]
5555// thresholds_upper: [1000]
56- // decisions: [0, 1 ]
56+ // decisions: [0, 0 ]
5757// decision_values: [0, 1]
5858// }
5959int count_and_lower_words (char * str , int len , int state ) {
@@ -212,7 +212,7 @@ int calculate_df(const char *term, char **corpus, int num_docs) {
212212// thresholds: [2000]
213213// thresholds_lower: [1]
214214// thresholds_upper: [40]
215- // decisions: [0, 1 ]
215+ // decisions: [0, 0 ]
216216// decision_values: [0, 1, 2]
217217// }
218218void score_term_over_docs (
@@ -291,7 +291,7 @@ void approx_score_term_over_docs_2(
291291// thresholds: [6]
292292// thresholds_lower: [1]
293293// thresholds_upper: [5]
294- // decisions: [0, 1 ]
294+ // decisions: [0, 0 ]
295295// decision_values: [0, 1, 2, 3]
296296// }
297297int lowering_corpus (char * * corpus , char * * lower_corpus , int * _num_docs , double * doc_lengths , DocumentScore * scores , int state ) {
@@ -493,7 +493,7 @@ int main(int argc, char **argv)
493493 if (ranked_scores )
494494 {
495495 printf ("Ranking results:\n" );
496- for (int i = 0 ; i < printed_doc ; ++ i )
496+ for (int i = 0 ; i < 1000 ; ++ i )
497497 {
498498 int doc_index = ranked_scores [i ].doc_index ;
499499 printf ("Rank %d: Doc %d (Score: %.4f) - \"%s\"\n" ,
0 commit comments