@Immutable public abstract class ShingleBased extends Object
| Constructor and Description |
|---|
ShingleBased(int k) |
| Modifier and Type | Method and Description |
|---|---|
int |
getK()
Return k, the length of k-shingles (aka n-grams).
|
Map<String,Integer> |
getProfile(String string)
Compute and return the profile of s, as defined by Ukkonen "Approximate
string-matching with q-grams and maximal matches".
|
public ShingleBased(int k)
k - IllegalArgumentException - if k is <= 0public final int getK()
public final Map<String,Integer> getProfile(String string)
string - Copyright © 2018. All rights reserved.