Downloads · 30 days
5
7% of all-time downloads
AWCO/mdeberta-v3-base-narratives-classifier-hierarchical
mdeberta-v3-base-narratives-classifier-hierarchical is a text classification model from AWCO. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of microsoft/mdeberta-v3-base for hierarchical text classification of narratives related to Climate Change and Ukraine-Russia War.
Downloads · 30 days
5
7% of all-time downloads
All-time downloads
74
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/mdeberta-v3-base for hierarchical text classification of narratives related to Climate Change and Ukraine-Russia War.
This model performs hierarchical classification on text documents to identify:
The model has been trained and tested on multiple languages:
from transformers import AutoTokenizer, AutoModel
import torch
# Load model and tokenizer
model_name = "AWCO/mdeberta-v3-base-narratives-classifier-hierarchical"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModel.from_pretrained(model_name)
# Example usage for inference
text = "Your text here..."
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=512)
with torch.no_grad():
outputs = model(**inputs)
# Process outputs according to your inference pipeline
The model was trained on a custom dataset containing narratives related to:
The model achieves strong performance across multiple languages for both narrative-level and sub-narrative level classification tasks.
config.json: Model configurationmodel.safetensors: Model weights in SafeTensors formattokenizer.json: Tokenizer configurationlabel_mappings_hierarchical.json: Hierarchical label mappings for classificationIf you use this model in your research, please cite accordingly.
This model is released under the MIT License.