Examples of BM25Similarity


Examples of org.apache.lucene.search.similarities.BM25Similarity

        super(name);
        float k1 = settings.getAsFloat("k1", 1.2f);
        float b = settings.getAsFloat("b", 0.75f);
        boolean discountOverlaps = settings.getAsBoolean("discount_overlaps", true);

        this.similarity = new BM25Similarity(k1, b);
        this.similarity.setDiscountOverlaps(discountOverlaps);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.