Modifier and Type | Method and Description |
---|---|
static 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 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 Double[] toSparseLocalFreqDoubleArray(Terms docTerms, Terms fieldTerms) throws 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 arrayIOException
- in case accessing the underlying index failspublic static Double[] toDenseLocalFreqDoubleArray(Terms docTerms) throws 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 arrayIOException
- in case accessing the underlying index failsCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.