TL;DR — We released ja-sentiment-v1, a small Japanese sentiment classifier that returns probabilities for positive / neutral / negative. On a sealed test of 5,000 items it scores accuracy and Macro F1 of 0.9940, with exactly 2 positive↔nega...
TL;DR — We released ja-sentiment-v1, a small Japanese sentiment classifier that returns probabilities for positive / neutral / negative. On a sealed test of 5,000 items it scores accuracy and Macro F1 of 0.9940, with exactly 2 positive↔negative confusions; on a 600-item human-verified set it scores 0.9933 with none. Calibration error is ~0.005, so the probabilities work as scores, not just labels. The evaluation sets are synthetic-derived — read every number here, including the comparison with the most-downloaded existing model, as agreement with our verified labels, not as a verdict on real reviews. Apache 2.0, ONNX included, ~18 ms per item on CPU.
Model page (try the demo from there): https://huggingface.co/japan-opendata/ja-sentiment-v1
Browser demo: https://huggingface.co/spaces/japan-opendata/ja-sentiment-demo
Built as a pipeline part, not a demo. Review aggregation, first-pass triage of posts and inquiries, trend-spotting in survey free text — the jobs where you need a probability per item, cheaply, on your own CPU. The calibration measurement (ECE ~0.005) is there because a score you threshold and average has to mean what it says.
The error that matters is nearly absent. Classifiers confuse neutral with everything; what breaks dashboards is positive read as negative. That happened 2 times in 5,000 sealed items, and 0 times in the 600-item human-verified set.
The comparison, with its leash on. The most-downloaded Japanese sentiment model on the Hub (christian-phu/bert-finetuned-japanese-sentiment), run under identical conditions, scored 0.6210 on our sealed set and 0.5750 on the human-verified set. Before anyone quotes that: our sets are synthetic-derived, its training was real reviews, and our definition of "neutral" is ours. The honest reading is agreement with our verified labels under our definitions — not superiority on real-world reviews, which this evaluation does not measure.
Use it
from transformers import AutoModelForSequenceClassification, AutoTokenizer
repo = "japan-opendata/ja-sentiment-v1"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSequenceClassification.from_pretrained(repo)
model.eval()
# Probabilities for negative / neutral / positive, with the label mapping in
# inference_config.json. Full reference implementation (PyTorch and ONNX):
# examples/infer_sentiment.py
The ONNX build (fp32, opset 17) matched PyTorch predictions exactly on 200 development and 200 sealed items. Speed: ~17.8 ms per item on a Core i7-11700F. No INT8 build is shipped.
Measured results
Sealed test (5,000 items, split from training by subtopic, single final run):
Accuracy 0.9940, Macro F1 0.9940
Positive↔negative confusions: 2 of 5,000
Human-verified evaluation (600 items, every label checked by eye):
Accuracy 0.9933, positive↔negative confusions: 0
Calibration: expected calibration error ~0.005 on the sealed set.
Training data
All synthetic, all commercially clean: sentences generated by Apache 2.0 / MIT open-weight LLMs and passed through independent verification by a different model. A random 200-item audit of the data found label validity 97.5% and Japanese naturalness 93.5%. Domains are spread deliberately — product reviews, lodging and dining, SNS-style short posts, support feedback, app reviews — and about 60% of the data is hard cases: negations, two-sided evaluations, understated complaints. Research-only or non-commercial sources (WRIME, the chABSA family) and review collections of unknown provenance were not used.
What didn't work / Limitations
The evaluation ground is ours. Both test sets derive from synthetic data built to our label definitions. A model trained on real reviews is being graded on our turf, with our "neutral". That is why the comparison above is framed as label agreement — on real review text, with someone else's definitions, the ranking could look different, and this release does not measure that.
Synthetic naturalness is not 100%. The audit's 93.5% naturalness figure means some training sentences read slightly written. Real text is messier in ways synthetic data underrepresents; expect field performance below 0.994.
Three classes is a coarse instrument. Mixed feelings are forced into one label (or a spread of probabilities). The probabilities soften this — a 0.45/0.10/0.45 item is telling you something — but a pipeline that needs aspect-level sentiment needs a different tool.
Probabilities are calibrated on our distribution. ECE ~0.005 was measured on the sealed set. On your distribution, recalibrate before treating the outputs as frequencies.
This is the twelfth in our line of small, single-purpose Japanese models. This one ships with a demo you can try in the browser from the model page — and with its comparison caveat printed in the same paragraph as the comparison, where it belongs.
If you aggregate Japanese reviews or feedback today: do you use the label, the probability, or a threshold you tuned yourself — and what breaks first?
Model on Hugging Face: https://huggingface.co/japan-opendata/ja-sentiment-v1
Browser demo: https://huggingface.co/spaces/japan-opendata/ja-sentiment-demo
Code (the model series): https://github.com/japan-opendata-lab/ja-small-models
Model page with usage notes: https://jpopendata.jp/models/ja-sentiment-v1/
Get the next release notes and our Kaggle experiment logs by email: https://jpopendata.jp/ (newsletter signup in the footer).