Downloads · 30 days
13
8% of all-time downloads
Saad4web/gemma-3-270m-football-extractor
gemma-3-270m-football-extractor is a machine learning model from Saad4web. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Fine-tuned model for extracting structured data from football/soccer news posts.
Downloads · 30 days
13
8% of all-time downloads
All-time downloads
172
Public
Parameters
268M
574 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors536 MB · 93%
From the Hugging Face model README
Fine-tuned model for extracting structured data from football/soccer news posts.
This model is a fine-tuned version of google/gemma-3-270m-it specialized in extracting structured information from football news posts, including:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained(
"YOUR_USERNAME/gemma-3-270m-football-extractor",
torch_dtype=torch.bfloat16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("YOUR_USERNAME/gemma-3-270m-football-extractor")
# Prepare input
post = "🚨 BREAKING: Manchester United sign Bruno Fernandes for £55m!"
messages = [
{
"role": "system",
"content": "You are a data extraction API. Respond ONLY with JSON."
},
{
"role": "user",
"content": f"Extract structured data from: {post}"
}
]
# Generate
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True)
inputs = inputs.to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=1024,
temperature=0.1,
do_sample=False
)
result = tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True)
print(result)
The model extracts the following fields:
{
"post_id": int,
"post_tone": "neutral|positive|negative|exclusive|speculative",
"post_keywords": ["keyword1", "keyword2", ...],
"post_summary": "One-sentence summary",
"post_content_focus": ["transfers|injury|match_summary|..."],
"source_journalist": "David Ornstein|Fabrizio Romano|...",
"post_style": "exclusive_news_alert|direct_quote|...",
"post_entities": [
{
"entity_value": "Manchester United",
"entity_type": "club"
}
],
"has_emoji": true|false,
"emojis_found": ["🚨", ...],
"has_hashtag": true|false,
"hashtags_found": ["#MUFC", ...],
"has_mention_tag": true|false,
"mentions_found": ["@FabrizioRomano", ...],
"injury_details": {
"player_name": "Mohamed Salah",
"status": "out_for_3_weeks",
"injury_type": "hamstring"
}
}
If you use this model, please cite:
@misc{gemma3-football-extractor,
title={Gemma-3-270M Football Data Extractor},
author={Your Name},
year={2025},
publisher={HuggingFace},
url={https://huggingface.co/YOUR_USERNAME/gemma-3-270m-football-extractor}
}
Apache 2.0 (inherited from base model)
Model version: 1.0
Last updated: November 2025
Contact: [email protected]