SetFit/amazon_reviews_multi_en
Viewer • Updated • 210k • 1.46k • 7
How to use Sanjeev2501/nyxar-bilstm-sentiment with Keras:
# Available backend options are: "jax", "torch", "tensorflow".
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://Sanjeev2501/nyxar-bilstm-sentiment")
A deep learning sentiment classification model developed for the NYXAR AI Intelligence & Observability Platform.
The model uses a Bidirectional Long Short-Term Memory (BiLSTM) neural network to capture contextual information from text sequences and predict sentiment across three classes:
Framework:
Language:
License:
Dataset:
The dataset contains English Amazon product reviews used for sentiment classification.
This model is designed for:
The model may struggle with:
Predictions should be used as supporting signals rather than business-critical decisions.
Metrics obtained during evaluation:
import joblib
from tensorflow.keras.models import load_model
from tensorflow.keras.preprocessing.sequence import pad_sequences
model = load_model("bilstm_model_v1.keras")
tokenizer = joblib.load("bilstm_tokenizer_v1.pkl")
max_len = joblib.load("max_len_v1.pkl")
text = ["The product exceeded expectations."]
sequence = tokenizer.texts_to_sequences(text)
padded = pad_sequences(sequence, maxlen=max_len)
prediction = model.predict(padded)