Enter any news headline and content below to get an instant verdict.
The binary text classifier follows a 6-stage deep learning pipeline using Long Short-Term Memory (LSTM) per the project specification:
| Layer | Type | Output Shape / Parameters | Core Function |
|---|---|---|---|
| 1 | Embedding | (vocab: 20000, dim: 128, mask_zero=True) | Converts word IDs into dense semantic vectors |
| 2 | LSTM | (units: 64, return_sequences=False) | Learns sequential context & dependencies |
| 3 | Dropout | (rate: 0.3) | Regularization layer reducing overfitting |
| 4 | Dense | (units: 1, activation='sigmoid') | Outputs binary classification score (0 or 1) |