We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8f9ff0 commit 4e5f521Copy full SHA for 4e5f521
app/Services/SpamDetector.php
@@ -80,7 +80,7 @@ public function checkByClassifier(): bool
80
->trainClassifier($classifier, 'spam.json', static::SPAM)
81
->trainClassifier($classifier, 'ham.json', static::HAM);
82
83
- return $classifier->guess($this->message) === static::SPAM;
+ return $classifier->most($this->message) === static::SPAM;
84
}
85
86
/**
0 commit comments