Text Classification
Transformers
Safetensors
English
bert
finance
multi-label
optuna
classification
social-science
communication-science
Instructions to use nurdyansa/framing-bert-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nurdyansa/framing-bert-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nurdyansa/framing-bert-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nurdyansa/framing-bert-model") model = AutoModelForSequenceClassification.from_pretrained("nurdyansa/framing-bert-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signaturede33c85 -
Update README.md
Verified signatureaba77a3 -
Update README.md
Verified signature60019d0 -
Update README.md
Verified signature61abe97 -
Update README.md
Verified signaturef373611 -
Update README.mdβ
Verified signature# framing-bert-model `framing-bert-model` is a fine-tuned BERT-based model that performs **multi-label classification** to identify framing elements in news articles, based on Robert Entman's typology of framing. This model helps detect how news frames are constructed through: 1. **Define Problem** β Identifying the core issue or topic. 2. **Diagnose Cause** β Assigning causality or source. 3. **Make Moral Judgment** β Expressing value-based judgments. 4. **Suggest Remedy** β Proposing solutions or actions. --- ## π§ Model Details - **Base model**: `bert-base-uncased` - **Architecture**: `BertForSequenceClassification` (multi-label) - **Tokenizer**: `BertTokenizer` (uncased) - **Training objective**: Binary cross-entropy loss across 4 framing categories - **Number of labels**: 4 ### β Best Hyperparameters (via Optuna) ```json { "learning_rate": 4.235958496352736e-05, "weight_decay": 0.221987649206252, "num_train_epochs": 3 } ``` --- ## π Performance (on Validation Set) β¦c8038aa -
Update README.mdβ
Verified signature# Framing Detection with BERT This repository contains a fine-tuned BERT-based model for detecting **framing elements** in news articles. The model is built on top of `bert-base-uncased` using the Hugging Face Transformers library and trained on a custom-labeled dataset consisting of 3,000 news articles. ## π Framing Theory Framing is a concept from communication and media studies that refers to the way information is presented to influence audience interpretation. According to **Robert M. Entman (1993)**, framing involves four key elements: 1. **Define problems** β identifying what a causal agent is doing with what costs and benefits. 2. **Diagnose causes** β identifying the forces creating the problem. 3. **Make moral judgments** β evaluating causal agents and their effects. 4. **Suggest remedies** β proposing solutions to the problem and predicting their likely outcomes. These four elements serve as the foundation for the classification labels used in this model. ## π° Dataseβ¦f048f37 -
README.mdβ
Verified signature# π§ Framing BERT Model (Multi-Label Classification) A fine-tuned `bert-base-uncased` model for **multi-label classification** of *news framing elements*, based on a custom annotated dataset of news texts. The model detects four common elements of framing in political and social discourse. ## π Labels # Framing Elements Classification with BERT ## Overview This project focuses on classifying **framing elements** in news text based on the framing theory of **Robert Entman (1993)**. We fine-tuned a BERT-based sequence classification model to predict the presence of the following four core framing elements: - **`define_problem`** β Whether the text defines a social or political problem. - **`diagnose_cause`** β Whether the text attributes causes or sources for the issue. - **`moral_judgment`** β Whether the text expresses a normative or value-laden evaluation. - **`suggest_remedy`** β Whether the text suggests solutions, actions, or remedies. --- ## Model - **Base Model:** `bertβ¦f03db73 -
Upload fine-tuned multi-label BERT model for framing detection
Verified signature403aaf5 -
initial commit
Verified signature12deb6b