public class DocToDoubleVectorUtils
extends java.lang.Object
Document
s 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 vectorsDouble
s 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 documentDouble
s as an arrayjava.io.IOException
- in case accessing the underlying index failsCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.