public class StringProfile extends Object
Constructor and Description |
---|
StringProfile(SparseIntegerVector vector,
KShingling ks) |
Modifier and Type | Method and Description |
---|---|
double |
cosineSimilarity(StringProfile other) |
String[] |
getMostFrequentNGrams(int number) |
SparseIntegerVector |
getSparseVector() |
static void |
main(String[] args) |
double |
qgramDistance(StringProfile other) |
public StringProfile(SparseIntegerVector vector, KShingling ks)
public static void main(String[] args)
public double cosineSimilarity(StringProfile other) throws Exception
other
- Exception
public double qgramDistance(StringProfile other) throws Exception
other
- Exception
public SparseIntegerVector getSparseVector()
public String[] getMostFrequentNGrams(int number)
Copyright © 2015. All rights reserved.