Added initial functionality for word parts implementation

This commit is contained in:
2018-11-05 10:30:41 +01:00
parent f9ce74d7b8
commit abc15360d3
12 changed files with 795 additions and 152 deletions

View File

@@ -52,6 +52,10 @@ public class Ngrams {
// generate proper MultipleHMKeys depending on filter data
String key = wordToString(ngramCandidate, stats.getFilter().getCalculateFor(), stats.getFilter().getWordParts());
if(key.length() < stats.getFilter().getPrefixLength() + stats.getFilter().getSuffixLength()){
continue;
}
// if last letter is ',' erase it
// if (key.equals("")){