Package org.terrier.structures

Examples of org.terrier.structures.BlockFieldLexiconEntry


  {
    final String[] terms = tfs.keys(new String[0]);
    Arrays.sort(terms);
    for (String t : terms)
    {
      BlockFieldLexiconEntry fle = new BlockFieldLexiconEntry(getFieldFrequency(t), blockFreqs.get(t));
      fle.setOffset((long)0, (byte)0);
      fle.setTermId(TermCodes.getCode(t));
      fle.setStatistics(nts.get(t), tfs.get(t))
      lexiconStream.writeNextEntry(t, fle);
    }
  }
View Full Code Here

TOP

Related Classes of org.terrier.structures.BlockFieldLexiconEntry

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.