indonanot5-base-liputan6
LazarusNLP/IndoNanoT5-base fine-tuned for Indonesian news summarization on Liputan6 (Koto et al., 2020).
Part of indo-summarization-review-insights.
Training
- Data: 50,000 articles sampled (seed 42) from the Liputan6 canonical train
split after removing 5,184 "teaser" summaries and 879 duplicate articles.
The dateline (
Liputan6 . com , <City> :) is removed from inputs. - Max input / target length: 512 / 80 tokens.
- Early stopping on ROUGE-L of a fixed 1,000-article validation subset.
- Hardware: 2x Tesla T4, 431.6 minutes of training.
Results (beam search, 4 beams)
ROUGE F1 from rouge-score, stemmer off. ROUGE-Lsum is summary-level ROUGE-L.
| Test set | n | ROUGE-1 | ROUGE-2 | ROUGE-L | ROUGE-Lsum |
|---|---|---|---|---|---|
| canonical_test | 10,972 | 39.5 | 21.67 | 33.02 | 36.6 |
| xtreme_test | 3,862 | 33.7 | 14.16 | 26.51 | 30.35 |
Limitations and license
- The base model lowercases text, so outputs are lowercase.
- Non-commercial research use only. The Liputan6 authors forbid commercial use of the corpus and of models trained on it (Indonesian Copyright Law No. 28/2014).
Usage
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Danyou7/indonanot5-base-liputan6") # requires transformers<5
model = AutoModelForSeq2SeqLM.from_pretrained("Danyou7/indonanot5-base-liputan6")
out = model.generate(**tok(article, max_length=512, truncation=True, return_tensors="pt"))
print(tok.decode(out[0], skip_special_tokens=True))