Skip to content

Commit 8b90381

Browse files
author
prayas7102
committed
comments improved
1 parent 8b41518 commit 8b90381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/searches/BM25InvertedIndex.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public double getRelevanceScore() {
9595
}
9696

9797
public final class BM25InvertedIndex {
98-
private Map<String, Map<Integer, Integer>> index; // Inverted index mapping terms to document frequencies
98+
private Map<String, Map<Integer, Integer>> index; // Inverted index mapping terms to document id and frequency
9999
private Map<Integer, Movie> movies; // Mapping of movie document IDs to Movie objects
100100
private int totalDocuments; // Total number of movies/documents
101101
private double avgDocumentLength; // Average length of documents (number of words)

0 commit comments

Comments
 (0)