Package de.jungblut.nlp

Examples of de.jungblut.nlp.SparseVectorDocumentMapper


   * @param measurer the distance measurer on two vectors.
   * @return a brand new inverted index.
   */
  public static InvertedIndex<DoubleVector, Integer> createVectorIndex(
      DistanceMeasurer measurer) {
    DocumentMapper<DoubleVector, Integer> mapper = new SparseVectorDocumentMapper();
    DocumentDistanceMeasurer<DoubleVector, Integer> meas = VectorDocumentDistanceMeasurer
        .<Integer> with(measurer);
    return new InvertedIndex<>(mapper, meas);
  }
View Full Code Here

TOP

Related Classes of de.jungblut.nlp.SparseVectorDocumentMapper

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.