Skip numbers when classifying

pull/190/head
M66B 5 years ago
parent f1c5a57133
commit 3760eee798

@ -96,7 +96,7 @@ public class WorkerFts extends Worker {
int start = boundary.first();
for (int end = boundary.next(); end != BreakIterator.DONE; end = boundary.next()) {
String word = text.substring(start, end);
if (word.length() > 1)
if (word.length() > 1 && !word.matches(".*\\d.*"))
features.add(word);
start = end;
}

Loading…
Cancel
Save