Package it.unimi.dsi.mg4j.query

Examples of it.unimi.dsi.mg4j.query.IntervalSelector


     * and again we use the handy fastutil constructor. Note that setting up a BM25F scorer
     * would give much better results, but we want to keep it simple. */
    engine.setWeights( new Reference2DoubleOpenHashMap<Index>( new Index[] { text, title }, new double[] { 1, 2 } ) );
   
    /* Optionally, we can use an interval selector to get intervals representing matches. */
    engine.intervalSelector = new IntervalSelector();
   
    /* We are ready to run our query. We just need a list to store its results. The list is made
     * of DocumentScoreInfo objects, which comprise a document id, a score, and possibly an
     * info field that is generic. Here the info field is a map from indices to arrays
     * of selected intervals. This part will be empty if we do not set an interval selector. */
 
View Full Code Here

TOP

Related Classes of it.unimi.dsi.mg4j.query.IntervalSelector

Copyright © 2018 www.massapicom. 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.