Skip to content

JiatangDong/sms-spam-detect-tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMS spam detect API using TF-BERT

Install

pip install -r requirements.txt

Train/Verify Model

python model.py <params>

-t or --train: True or False for running model train -r or --read: path for data file -m or --model: path for model file -s or --save: True or False for saving model

Start Service

python service.py <params>

-m or --model: path for model file -d or --debug: True or False for debug mode

Test API

POST http://localhost:5000/check_spam

[
    "http://paperok.ml - Professional academic help for you!",
    "You know what the warmer weather means...it's burn season! 🔥 Just ask me to roast one of ur friends. I'll take care of the rest 😎",
    "Your package is waiting for delivery. Please confirm the settlement of $19.99 on the following link: http://aka.ms/adfuyiwy",
    "NHS: we have identified that you are eligible to apply for your vaccine. For more information and apply, follow here: application-ukform.com",
    "Hi, Darya. When I test the iOS telemetry today, I found the same issue with \"New Chat Open\" event. I've ready report a bug for that."
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages