Views
No views yet
| Metric | Value |
|---|---|
| Validation MAE | 0.6807 |
| Training MAE | 0.6368 |
| Validation RMSE | 0.8799 |
| Training RMSE | 0.8215 |
| Dimension | MAE |
|---|---|
| Human Wellbeing Impact | 0.6857 |
| Social Cohesion Impact | 0.7040 |
| Justice Rights Impact | 0.6188 |
| Evidence Level | 0.6363 |
| Benefit Distribution | 0.7922 |
| Change Durability | 0.6475 |
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4# Load model and tokenizer
5model_name = "jeergrvgreg/uplifting-filter-v5"
6tokenizer = AutoTokenizer.from_pretrained(model_name)
7model = AutoModelForSequenceClassification.from_pretrained(model_name)
8
9# Prepare input
10article = {
11 "title": "Example Article Title",
12 "content": "Article content here..."
13}
14
15text = f"{article['title']}\n\n{article['content']}"
16inputs = tokenizer(text, return_tensors="pt", max_length=512, truncation=True)
17
18# Get predictions
19with torch.no_grad():
20 outputs = model(**inputs)
21 scores = outputs.logits[0].numpy()
22
23# Dimension names
24dimensions = ['human_wellbeing_impact', 'social_cohesion_impact', 'justice_rights_impact', 'evidence_level', 'benefit_distribution', 'change_durability']
25
26# Print scores
27for dim, score in zip(dimensions, scores):
28 print(f"{dim}: {score:.2f}")1@misc{uplifting_filter_v5.0,
2 title={Uplifting Content Filter},
3 author={Your Name},
4 year={2025},
5 url={https://huggingface.co/jeergrvgreg/uplifting-filter-v5}
6}