Instructions to use Anecra/isda-sms-lstm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Anecra/isda-sms-lstm with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://Anecra/isda-sms-lstm") - Notebooks
- Google Colab
- Kaggle
Isda SMS classification (spam / ham / smishing)
Binary Keras LSTM models trained for Philippine SMS: spam vs ham, then smishing vs spam. Preprocessing and thresholds are defined in preprocessing_config.json.
Files
lstm_spam_ham_detection_model.h5โ first-stage spam gatelstm_smish_ham_detection_model.h5โ second-stage smishing vs spampreprocessing_config.jsonโvocab_size,sentence_len, decision thresholds, Tagalog stopwords
Labels returned by the reference API: 0 ham, 1 spam (non-smish), 2 smish.
Usage
Install: pip install tensorflow scikit-learn nltk huggingface_hub
Download the repo locally:
huggingface-cli download Anecra/isda-sms-lstm --local-dir ./isda-hub
Load config and models from ./isda-hub, then run the same pipeline as in the Isda TrainingFiles/preprocess.py module (one_hot + pad_sequences with values from preprocessing_config.json).
Citation
If you use these weights, cite or link the upstream Isda project repository you obtained them from.
- Downloads last month
- -