Examples of TermPositions


Examples of uk.ac.ucl.panda.utility.structure.TermPositions

    /**
     * UCL Proof Scan
     */

    // positions
    TermPositions termPos = reader.termPositions(term);
    termPos.skipTo(doc);
    int pos = 0;
    int i = termPos.freq();
    while (termPos.doc() == doc && i > 0) {
      System.out.println("docno: " + doc + " pos: "
          + termPos.nextPosition());
      i--;

    }

    // ////////
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.