Skip to content

Commit

Permalink
something
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Raj committed Dec 9, 2016
1 parent caa332f commit 658a8f1
Show file tree
Hide file tree
Showing 4 changed files with 12,804 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Phase 1/Task 2/bm25_q_expansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,10 @@ def calculate_new_query_scores(sorted_score_map,R):

for term_score in sorted_term_scores:
#print(str(at)+" "+term_score[0]+" "+str(term_score[1]))
query_map[query_no].append(term_score[0])
at += 1
if at == 20:
if term_score[0] not in query_map[query_no]:
query_map[query_no].append(term_score[0])
at += 1
if at == 10:
break


Expand Down
Loading

0 comments on commit 658a8f1

Please sign in to comment.