mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 06:01:12 +00:00
Classifier: more emphasis on words before/after
This commit is contained in:
parent
e15a7f9d12
commit
d59d6e37a4
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ public class MessageClassifier {
|
||||||
int c = frequency.count;
|
int c = frequency.count;
|
||||||
Integer b = (before == null ? null : frequency.before.get(before));
|
Integer b = (before == null ? null : frequency.before.get(before));
|
||||||
Integer a = (after == null ? null : frequency.after.get(after));
|
Integer a = (after == null ? null : frequency.after.get(after));
|
||||||
double f = ((b == null ? 0 : b) + c + (a == null ? 0 : a)) / 3.0;
|
double f = ((b == null ? 0 : 2 * b) + c + (a == null ? 0 : 2 * a)) / 5.0;
|
||||||
stat.totalFrequency += f;
|
stat.totalFrequency += f;
|
||||||
|
|
||||||
stat.matchedWords++;
|
stat.matchedWords++;
|
||||||
|
|
Loading…
Reference in a new issue