Downloads · 30 days
7
1% of all-time downloads
nawazishpatana/structure-extraction-t2-paper-split
structure-extraction-t2-paper-split is a text generation model from nawazishpatana. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as openrail.
Model: Flan-T5-base (fine-tuned for structured extraction)
Downloads · 30 days
7
1% of all-time downloads
All-time downloads
608
Public
Parameters
248M
991 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 100%
From the Hugging Face model README
Model: Flan-T5-base (fine-tuned for structured extraction)
Task: Extract structured claim information from research paper sentences.
This model extracts structured information from claim sentences in brain tumor research papers. It identifies key fields: model, task, dataset, metric, value, comparison, and domain.
The train/validation/test split is paper-based: all sentences from the same DOI/paper are kept in one split to avoid leakage.
| Field | Exact Match | Non-Null Accuracy | Null Accuracy |
|---|---|---|---|
| model | 0.7233 | 0.0863 | 1.0000 |
| task | 0.6318 | 0.1616 | 0.9885 |
| dataset | 0.7778 | 0.0286 | 1.0000 |
| metric | 0.6797 | 0.3250 | 0.9537 |
| value | 0.8824 | 0.4091 | 0.9946 |
| comparison | 0.8519 | 0.2556 | 0.9973 |
| domain | 0.6405 | 0.3962 | 0.9742 |
The model extracts the following structured fields:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import json
model_name = "nawazishpatana/claim-extractor-brain-tumor" # Example
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
# Example input
prompt = '''Extract structured claim information as JSON with keys model, task, dataset, metric, value, comparison, domain. Use null for missing values.
Title: Dilated SE-DenseNet for Brain Tumor Segmentation
Year: 2024
Claim Sentence: Our model achieved 95% Dice score on BraTS dataset.'''
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
prediction = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(prediction)
# Output: {"model": "Dilated SE-DenseNet", "dataset": "BraTS", "metric": "Dice", "value": "0.95", ...}
The model includes automatic post-processing:
If you use this model, please cite:
@misc{claim-extractor-brain-tumor,
title={Claim Information Extractor for Brain Tumor Research},
author={Your Name},
year={2025},
howpublished={\url{https://huggingface.co/username/claim-extractor-brain-tumor}}
}