public class Index extends Object
| Constructor and Description |
|---|
Index() |
Index(int _q)
Constructor for similarities others than trigrams
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
addString(String s)
Tokenizes a string and adds it to the index
|
Set<Integer> |
getAllSizes() |
Map<String,Set<String>> |
getStrings(int size)
Returns all strings of size size
|
Set<String> |
getStrings(int size,
String token)
Returns all strings to a given token
|
public Index()
public Index(int _q)
_q - value of n for n-gramspublic Set<String> addString(String s)
s - String to indexpublic Set<String> getStrings(int size, String token)
size, - Size of tokentoken - Input tokenpublic Map<String,Set<String>> getStrings(int size)
size - Size requirementCopyright © 2020. All rights reserved.