Package it.unimi.di.big.mg4j.search.visitor

Examples of it.unimi.di.big.mg4j.search.visitor.TermCollectionVisitor


  /** Creates a BM25 scorer using specified <var>k</var><sub>1</sub> and <var>b</var> parameters.
   * @param k1 the <var>k</var><sub>1</sub> parameter.
   * @param b the <var>b</var> parameter.
   */
  public RelevanceModelScorer(final double k1, final double b) {
    termVisitor = new TermCollectionVisitor();
    setupVisitor = new CounterSetupVisitor( termVisitor );
    this.k1 = k1;
    this.b = b;
    k1Times1MinusB = k1 * ( 1 - b );
  }
View Full Code Here


  /** Creates a BM25 adhoc using specified <var>k</var><sub>1</sub> and <var>b</var> parameters.
   * @param k1 the <var>k</var><sub>1</sub> parameter.
   * @param b the <var>b</var> parameter.
   */
  public RelevanceModelScorer(final double k1, final double b) {
    termVisitor = new TermCollectionVisitor();
    setupVisitor = new CounterSetupVisitor( termVisitor );
    this.k1 = k1;
    this.b = b;
    k1Times1MinusB = k1 * ( 1 - b );
  }
View Full Code Here

TOP

Related Classes of it.unimi.di.big.mg4j.search.visitor.TermCollectionVisitor

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.