- java.lang.Object
-
- org.apache.lucene.util.TermAndVector
-
public class TermAndVector extends java.lang.Object
Word2Vec unit composed by a term with the associated vector
-
-
Constructor Summary
Constructors Constructor Description TermAndVector(BytesRef term, float[] vector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BytesRef
getTerm()
float[]
getVector()
void
normalizeVector()
int
size()
java.lang.String
toString()
-
-
-
Field Detail
-
term
private final BytesRef term
-
vector
private final float[] vector
-
-
Constructor Detail
-
TermAndVector
public TermAndVector(BytesRef term, float[] vector)
-
-
Method Detail
-
getTerm
public BytesRef getTerm()
-
getVector
public float[] getVector()
-
size
public int size()
-
normalizeVector
public void normalizeVector()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-