Skip to content

Commit

Permalink
slight update
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Jun 21, 2020
1 parent 01c00ef commit 46b183d
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 @@ -182,7 +182,7 @@ func main() {
&processor.Ranker,
"ranker",
"bm25",
"set ranking algorithm [count, tfidf, tfidf2, bm25]",
"set ranking algorithm [wc, tfidf, tfidf2, bm25]",
)
flags.StringVarP(
&processor.FileOutput,
Expand Down
2 changes: 1 addition & 1 deletion processor/result_ranker.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
func rankResults(corpusCount int, results []*fileJob) []*fileJob {
// needs to come first because it resets the scores
switch Ranker {
case "count":
case "wc":
results = results
case "bm25":
results = rankResultsBM25(corpusCount, results, calculateDocumentFrequency(results))
Expand Down

0 comments on commit 46b183d

Please sign in to comment.