public class DocToDoubleVectorUtils
extends java.lang.Object
Documents to Double vectors.| Modifier and Type | Method and Description |
|---|---|
static java.lang.Double[] |
toDenseLocalFreqDoubleArray(Terms docTerms)
create a dense
Double vector given doc and field term vectors using local frequency of the terms in the doc |
static java.lang.Double[] |
toSparseLocalFreqDoubleArray(Terms docTerms,
Terms fieldTerms)
create a sparse
Double vector given doc and field term vectors using local frequency of the terms in the doc |
public static java.lang.Double[] toSparseLocalFreqDoubleArray(Terms docTerms, Terms fieldTerms) throws java.io.IOException
Double vector given doc and field term vectors using local frequency of the terms in the docdocTerms - term vectors for a given documentfieldTerms - field term vectorsDoubles as an arrayjava.io.IOException - in case accessing the underlying index failspublic static java.lang.Double[] toDenseLocalFreqDoubleArray(Terms docTerms) throws java.io.IOException
Double vector given doc and field term vectors using local frequency of the terms in the docdocTerms - term vectors for a given documentDoubles as an arrayjava.io.IOException - in case accessing the underlying index failsCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.