Class TermAndVector

java.lang.Object
org.apache.lucene.util.TermAndVector

public class TermAndVector extends Object
Word2Vec unit composed by a term with the associated vector
  • Field Details

    • term

      private final BytesRef term
    • vector

      private final float[] vector
  • Constructor Details

    • TermAndVector

      public TermAndVector(BytesRef term, float[] vector)
  • Method Details

    • getTerm

      public BytesRef getTerm()
    • getVector

      public float[] getVector()
    • size

      public int size()
    • normalizeVector

      public void normalizeVector()
    • toString

      public String toString()
      Overrides:
      toString in class Object