File size: 3,220 Bytes
b254a57
 
75f09f0
96c6b5d
75f09f0
96c6b5d
d75bf68
75f09f0
68a453d
40d370f
96c6b5d
 
75f09f0
96c6b5d
b254a57
 
d75bf68
 
484c1c5
b254a57
d75bf68
 
05989ee
315f4f6
d75bf68
 
 
b254a57
315f4f6
b254a57
d75bf68
 
 
 
 
 
 
 
 
315f4f6
d75bf68
 
b254a57
d75bf68
315f4f6
b254a57
d75bf68
b254a57
d75bf68
 
b254a57
965d98b
b254a57
 
 
 
d75bf68
b254a57
 
f63b4ee
b254a57
 
 
 
 
 
 
 
 
7b1eb38
453d473
 
 
 
 
 
7f8525c
 
 
 
 
 
 
 
453d473
 
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
license: cc-by-4.0
language:
  - en
metrics:
  - accuracy
base_model: facebook/roberta-large
pipeline_tag: text-classification
inference: true
widget:
  - text: This is a sample sentence to classify frames.
    example_title: Frame classification example
tags:
  - framing
---

# Sentence Frame Classifier

A RoBERTa-based model for detecting media frames at the sentence level. This model can classify sentences into 10 different frame categories and thus can be employed to detect frames across different text types (i.e. articles and comments, but also social media etc.). For more information, please refer to [*this paper*](https://arxiv.org/abs/2507.04612).

## Model Description

This model was trained to identify media frames in text at the sentence level. It's based on the Media Frame Corpus [*Card et al. 2015*](https://aclanthology.org/P15-2072.pdf) and extends to online discussion contexts [*Hartmann et al., 2019*](https://arxiv.org/pdf/1904.03969), making it suitable for analyzing both professional journalism and user-generated content.
Although trained as a multi-class classifier, probabilities for all labels can be extracted, enabling its use in multi-label classification settings.


## Frame Categories

The model classifies sentences into these 10 frame categories:

- Economic β€” Economic costs, benefits, or implications
- Morality β€” Moral or ethical considerations
- Fairness and Equality β€” Issues of fairness, equality, or discrimination
- Legality and Crime β€” Legal aspects, constitutionality, crime, and punishment
- Political and Policies β€” Political processes, policy prescriptions, and evaluations
- Security and Defense β€” Security threats, defense, or public safety
- Health and Safety β€” Health risks, safety concerns, or medical implications
- Cultural Identity β€” Cultural values, traditions, or identity issues
- Public Opinion β€” Public sentiment, polls, or popular support
- None/Other

## Performance

- Macro F1: 0.66


## Usage

```python
from transformers import pipeline

classifier = pipeline("text-classification", model="mattdr/cross-domain-frame-classifier")

text = "The new policy will cost taxpayers millions of dollars while providing few benefits."
result = classifier(text)
print(result)
# [{'label': 'Economic', 'score': 0.89}]

examples = [
    "The economy of the country is improving steadily.",
    "The public strongly supports this initiative according to recent polls.",
    "We must protect our children from these dangerous substances."
]

for text in examples:
    result = classifier(text)
    print(f"Text: {text}")
    print(f"Frame: {result[0]['label']} (confidence: {result[0]['score']:.2f})")
    print()
```

## Citation

For more information and if you use this model, please cite the following paper:

```bibtex
@misc{guida2025retainreframecomputationalframework,
      title={Retain or Reframe? A Computational Framework for the Analysis of Framing in News Articles and Reader Comments}, 
      author={Matteo Guida and Yulia Otmakhova and Eduard Hovy and Lea Frermann},
      year={2025},
      eprint={2507.04612},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2507.04612}, 
}