Downloads · 30 days
5
7% of all-time downloads
billerjully/BERT-absa-rest-reviews-ate
BERT-absa-rest-reviews-ate is a token classification model from billerjully. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
Aspect Term Extraction (ATE) model for Russian restaurant reviews. Given a review, it finds aspect terms (words the reviewer is talking about) and assigns each to one of five categories: Food, Service, Price, Interior…
Downloads · 30 days
5
7% of all-time downloads
All-time downloads
72
Public
Parameters
29.1M
116 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors116 MB · 97%
From the Hugging Face model README
Aspect Term Extraction (ATE) model for Russian restaurant reviews. Given a review, it finds aspect terms (words the reviewer is talking about) and assigns each to one of five categories: Food, Service, Price, Interior, Delivery.
This is a fine-tune of cointegrated/rubert-tiny2 (a compact Russian BERT, 29M parameters) for token classification with BIO tagging. It is the first stage of an Aspect-Based Sentiment Analysis (ABSA) pipeline; see the companion sentiment model billerjully/BERT-absa-rest-reviews-asc.
| Tag | Category | Examples of terms |
|---|---|---|
B-Food / I-Food | Food | паста, стейк, порции, суп |
B-Service / I-Service | Service | официант, персонал, обслуживание |
B-Price / I-Price | Price | цены, счёт, стоимость |
B-Interior / I-Interior | Interior | интерьер, музыка, атмосфера |
B-Delivery / I-Delivery | Delivery | доставка, курьер, заказ |
O | — | everything else |
from transformers import pipeline
ate = pipeline(
"token-classification",
model="billerjully/BERT-absa-rest-reviews-ate",
aggregation_strategy="simple", # merges B-/I- tokens into whole terms
)
text = "Паста была превосходной, но официант нас совсем забыл, а цены завышены."
for aspect in ate(text):
print(aspect["entity_group"], text[aspect["start"]:aspect["end"]], round(aspect["score"], 3))
Food паста 0.98
Service официант 0.98
Price цены 0.92
Tip: offsets (
start/end) are Python code-point indices. If you highlight spans in JavaScript, slice the text as an array of code points (Array.from(text)) — emoji in reviews shift UTF-16 indices otherwise.
Trained on billerjully/ru-absa-restaurant-reviews — 7,253 Russian restaurant reviews with token-level BIO annotation. Aspect mention counts:
| Category | Mentions |
|---|---|
| Food | 9,481 |
| Service | 4,985 |
| Interior | 2,892 |
| Price | 1,087 |
| Delivery | 849 |
I- tags are very rare in the training data (< 60 occurrences),
so multi-word aspect terms are seldom produced.