Beautified code and added Normalized word functionality on OneWords

This commit is contained in:
2018-08-10 11:08:01 +02:00
parent 9b5fa4616b
commit e140a9538b
12 changed files with 194 additions and 162 deletions

View File

@@ -892,7 +892,7 @@ public class XML_processing {
if (filter.getAl() == AnalysisLevel.STRING_LEVEL) {
// ngram level: if not 0 must be less than or equal to number of words in this sentence.
if (filter.getNgramValue() > 0 && filter.getNgramValue() > sentence.size()) {
return null;
return new ArrayList<>();
}
// if we're calculating values for letters, omit words that are shorter than string length