File size: 940 Bytes
786a767
9d4401e
786a767
9d4401e
 
 
 
 
 
 
 
 
 
 
786a767
9d4401e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
language: en
license: mit
tags:
- sentiment-analysis
- cybersecurity
- bert
widget:
- text: "Security team successfully prevents major data breach"
  example_title: "Positive"
- text: "Ransomware attack shuts down hospital systems"
  example_title: "Negative"
- text: "New security guidelines published by agency"
  example_title: "Neutral"
---

# Security Sentiment Analyzer

Fine-tuned BERT model that analyzes sentiment of cybersecurity news headlines.

## Model Details

- **Base Model:** `bert-base-uncased`
- **Task:** Text Classification (Sentiment Analysis)
- **Labels:**
    - `0`: Positive 🟢
    - `1`: Negative 🔴
    - `2`: Neutral 🔵

## Accuracy

**87.5%** on test set

## How to Use

```python
from transformers import pipeline

classifier = pipeline("text-classification", model="Aikaksh-Singh-Routela/security-sentiment-model")

result = classifier("Ransomware attack shuts down hospital systems")
print(result)