public class TfIdfExtractor extends Object
Constructor and Description |
---|
TfIdfExtractor(Schema schema) |
Modifier and Type | Method and Description |
---|---|
FieldCounter<Double> |
extract(String jsonString,
String recordId)
Extracts sums and average of TF-IDF value for the schema's Solr field array
without collecting the terms.
|
FieldCounter<Double> |
extract(String jsonString,
String recordId,
boolean doCollectTerms)
Extracts sums and average of TF-IDF value for the schema's Solr field array.
|
Map<String,List<TfIdf>> |
getTermsCollection()
Returns the term collection.
|
public TfIdfExtractor(Schema schema)
public FieldCounter<Double> extract(String jsonString, String recordId)
jsonString
- The JSON stringrecordId
- The record identifierpublic FieldCounter<Double> extract(String jsonString, String recordId, boolean doCollectTerms)
jsonString
- The JSON stringrecordId
- The record identifierdoCollectTerms
- A flag if the method collects termsCopyright © 2020. All rights reserved.