bm25f 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bm25f.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b00f60fdde35d0565f169e9486d2935e5ddcef9bbd8084d60d9228364c9ebed7
|
4
|
+
data.tar.gz: 7249983dda5a101fb1b2ddb646414b58776ae9a29feb4f563707e9a654d45094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16231fa9ba99f19cff2a6e9e801b734b53effa584da0bc8fcc80000774bbe61c75f1994bfbdc39b3cdac8d427b5049ff56dd1dbcc669eed3b836d910e45f5547
|
7
|
+
data.tar.gz: eea02e6dc1989ff69baa6097997da274149083a87cbbc7355101e613103f09fa52886718422cf68b9cb9afadb2e4ed9ce54be8117cba536a99647db01acb24f0
|
data/lib/bm25f.rb
CHANGED
@@ -77,7 +77,7 @@ class BM25F
|
|
77
77
|
def calculate_document_lengths(documents)
|
78
78
|
doc_lengths = {}
|
79
79
|
documents.each_with_index do |doc, i|
|
80
|
-
doc_lengths[i] = doc.transform_values { |v| v.nil ? 0 : v.length }
|
80
|
+
doc_lengths[i] = doc.transform_values { |v| v.nil? ? 0 : v.length }
|
81
81
|
end
|
82
82
|
doc_lengths
|
83
83
|
end
|