Views
No views yet
| Field | Exact Match | Non-Null Accuracy | Null Accuracy |
|---|---|---|---|
| model | 0.8072 | 0.1441 | 0.9974 |
| task | 0.6526 | 0.1707 | 0.9898 |
| dataset | 0.8173 | 0.0217 | 0.9975 |
| metric | 0.6807 | 0.2935 | 0.9428 |
| value | 0.8594 | 0.3333 | 0.9851 |
| comparison | 0.8273 | 0.1961 | 0.9899 |
| domain | 0.6205 | 0.3245 | 0.9571 |
1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2import json
3
4model_name = "nawazishpatana/claim-extractor-brain-tumor" # Example
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
7
8# Example input
9prompt = '''Extract structured claim information as JSON with keys model, task, dataset, metric, value, comparison, domain. Use null for missing values.
10Title: Dilated SE-DenseNet for Brain Tumor Segmentation
11Year: 2024
12Claim Sentence: Our model achieved 95% Dice score on BraTS dataset.'''
13
14inputs = tokenizer(prompt, return_tensors="pt")
15outputs = model.generate(**inputs, max_new_tokens=128)
16prediction = tokenizer.decode(outputs[0], skip_special_tokens=True)
17print(prediction)
18# Output: {"model": "Dilated SE-DenseNet", "dataset": "BraTS", "metric": "Dice", "value": "0.95", ...}1@misc{claim-extractor-brain-tumor,
2 title={Claim Information Extractor for Brain Tumor Research},
3 author={Your Name},
4 year={2025},
5 howpublished={\url{https://huggingface.co/username/claim-extractor-brain-tumor}}
6}