Go to file
2023-11-12 20:43:17 -06:00
src Updated README and usage help 2023-11-12 20:42:43 -06:00
test Updated README and usage help 2023-11-12 20:42:43 -06:00
.gitignore Initial commit 2023-10-24 15:01:06 -05:00
CMakeLists.txt Updated README and usage help 2023-11-12 20:42:43 -06:00
LICENSE Initial commit 2023-10-24 15:01:06 -05:00
README.md Updated README and usage help 2023-11-12 20:42:43 -06:00

bayesian-spam-filter

Report

Given SMSSpamCollection.txt was split in half for report

First half was used for generation, second half for actual filter

(Files included in test for convenience)

Results:

Spam precision:   0.935135
Spam recall:      0.39229
Ham precision:    0.780777
Ham recall:       0.987584
Spam F-Score:     0.552716
Ham F-Score:      0.872088
Accuracy:         0.689937

Compiling the project

Prerequisites

  • C++11

In order to compile the project, simply run these two commands:

cmake -B build -S .
cmake --build build

Running the Project

The program should now be compiled at build/bin/filter

Simply run the program using:

build/bin/filter

Usage

Use the --help argument for usage help