Package | Description |
---|---|
org.apache.nutch.scoring.similarity.cosine |
Implements the cosine similarity metric for scoring relevant documents
|
Modifier and Type | Field and Description |
---|---|
static ArrayList<DocVector> |
Model.docVectors |
Modifier and Type | Method and Description |
---|---|
static DocVector |
Model.createDocVector(String content,
int mingram,
int maxgram)
Used to create a DocVector from given String text.
|
Modifier and Type | Method and Description |
---|---|
static float |
Model.computeCosineSimilarity(DocVector docVector) |
float |
DocVector.dotProduct(DocVector docVector) |
Copyright © 2021 The Apache Software Foundation