Skip to content

Commit

Permalink
modify ranking name slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Jun 14, 2020
1 parent b39c090 commit 8bc88d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func main() {
&processor.Ranker,
"ranker",
"bm25",
"set ranking algorithm [tfidf, tfidfl, bm25]",
"set ranking algorithm [tfidf, tfidf2, bm25]",
)

// the below flags we want but are not enabled as yet
Expand Down
2 changes: 1 addition & 1 deletion processor/result_ranker.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func rankResults(corpusCount int, results []*fileJob) []*fileJob {
switch Ranker {
case "bm25":
results = rankResultsBM25(corpusCount, results, calculateDocumentFrequency(results))
case "tfidfl":
case "tfidf2":
results = rankResultsTFIDF(corpusCount, results, calculateDocumentFrequency(results), false)
default:
results = rankResultsTFIDF(corpusCount, results, calculateDocumentFrequency(results), true)
Expand Down

0 comments on commit 8bc88d7

Please sign in to comment.