mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Skip numbers when classifying
This commit is contained in:
parent
f1c5a57133
commit
3760eee798
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public class WorkerFts extends Worker {
|
||||||
int start = boundary.first();
|
int start = boundary.first();
|
||||||
for (int end = boundary.next(); end != BreakIterator.DONE; end = boundary.next()) {
|
for (int end = boundary.next(); end != BreakIterator.DONE; end = boundary.next()) {
|
||||||
String word = text.substring(start, end);
|
String word = text.substring(start, end);
|
||||||
if (word.length() > 1)
|
if (word.length() > 1 && !word.matches(".*\\d.*"))
|
||||||
features.add(word);
|
features.add(word);
|
||||||
start = end;
|
start = end;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue