A single IndoBERT encoder that predicts, for each of seven aspect categories,
whether the aspect is mentioned and whether the review is POSITIF, NEGATIF
or NETRAL about it.
This model is the fine-tuned arm of the IndoHotelABSA project. Its evaluation is designed to sit alongside a TF-IDF + logistic-regression baseline on the same splits and the same metric.
Aspects, in the canonical output order:
LokasiKebersihanPelayananKamar & FasilitasHargaMakanan & MinumanFasilitas PendukungPer aspect, the classes are POSITIF, NEGATIF, NETRAL, and "tidak disebut"
(the aspect is not discussed). The model has one linear head producing 28 logits;
each group of four is softmaxed independently. An aspect is treated as mentioned
when 1 - p(tidak disebut) clears a threshold, tuned on the 100-review gold
validation split.
train_silver, 2,478 reviews after removing one exact
duplicate and one review whose text also appears in test.No review text is redistributed with this model or its repository; only learned weights. See the project's ADR 0001.
Headline metric: macro-F1 over POSITIF and NEGATIF across all
(review, aspect) pairs, with bootstrap confidence intervals over reviews.
NETRAL has only 69 gold examples and is reported separately rather than folded
into the headline.
Reference point: the TF-IDF baseline scores 0.715 polarity macro-F1 (95% CI 0.689–0.739) and 0.813 mention F1 at its tuned threshold.
| Metric | Mean | Std | Per-seed |
|---|---|---|---|
| Polarity macro-F1 (headline) | 0.780 | 0.016 | 0.793, 0.762, 0.784 |
| Aspect macro-F1 | 0.719 | 0.015 | 0.732, 0.702, 0.722 |
| Mention F1 | 0.885 | 0.009 | 0.891, 0.875, 0.889 |
| NETRAL F1 | 0.073 | 0.013 | 0.066, 0.067, 0.088 |
| Mention threshold | 0.38 | — | 0.40, 0.40, 0.35 |
Seeds: 42, 43, 44.
from indohotel_absa import analyze
result = analyze("Kamar bersih dan wangi, sarapan enak, tapi lokasinya jauh.")
for prediction in result.annotations:
if prediction.mentioned:
print(prediction.aspect.value, prediction.polarity.value, prediction.confidence)
The library loads this repository by id, downloads the checkpoint once, and
caches it. Pass threshold= to trade mention precision against recall.
NETRAL is under-supported. Treat a NETRAL prediction as a hint, not a
reliable class.Lokasi has very few negative gold examples, so its negative F1 is the least
stable figure in the evaluation.indobenchmark/indobert-base-p1.encoder/model.safetensors 498 MBheads.pt 88 kB