Hi,
I have trained a small model with highly curated spam and ham from our own PMG instance.
The model is behaving extremely well and I would like to use it to alter the spam score from PMG's spamassassin slightly.
Currently,
* the model can be ran in CLI in a conda env
* it accepts an .eml file as the input
* answers with a float score for spamassassin [-2,+2].
What would be my best options to interface PMG with this model ?
Thanks !
edit: If that makes it easier, I could expose the inference via a web API, taking the .eml as body and answering with JSON or plaintext.
I have trained a small model with highly curated spam and ham from our own PMG instance.
The model is behaving extremely well and I would like to use it to alter the spam score from PMG's spamassassin slightly.
Currently,
* the model can be ran in CLI in a conda env
* it accepts an .eml file as the input
* answers with a float score for spamassassin [-2,+2].
What would be my best options to interface PMG with this model ?
Thanks !
edit: If that makes it easier, I could expose the inference via a web API, taking the .eml as body and answering with JSON or plaintext.
Last edited: