mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(ranking) TermCoherenceFactory should be run for size=2 queries
This commit is contained in:
parent
214551f1df
commit
8769704462
@ -14,7 +14,7 @@ public class TermCoherenceFactor {
|
|||||||
* found in the same sentences.
|
* found in the same sentences.
|
||||||
*/
|
*/
|
||||||
public double calculateOverlap(CompiledQueryLong wordMetadataQuery) {
|
public double calculateOverlap(CompiledQueryLong wordMetadataQuery) {
|
||||||
if (wordMetadataQuery.size() <= 2)
|
if (wordMetadataQuery.size() < 2)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
long mask = CompiledQueryAggregates.longBitmaskAggregate(wordMetadataQuery,
|
long mask = CompiledQueryAggregates.longBitmaskAggregate(wordMetadataQuery,
|
||||||
|
Loading…
Reference in New Issue
Block a user