Back to all models
fill-mask mask_token: [MASK]
Query this model
πŸ”₯ This model is currently loaded and running on the Inference API. ⚠️ This model could not be loaded by the inference API. ⚠️ This model can be loaded on the Inference API on-demand.
JSON Output
API endpoint  

⚑️ Upgrade your account to access the Inference API

Share Copied link to clipboard

Monthly model downloads

activebus/BERT-PT_rest activebus/BERT-PT_rest
last 30 days



Contributed by

activebus Hu Xu
6 models

How to use this model directly from the πŸ€—/transformers library:

Copy to clipboard
from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("activebus/BERT-PT_rest") model = AutoModelForMaskedLM.from_pretrained("activebus/BERT-PT_rest")


BERT (post-)trained from review corpus to understand sentiment, options and various e-commence aspects.

BERT-DK_rest is trained from 1G (19 types) restaurants from Yelp. BERT-PT_* addtionally uses SQuAD 1.1.

Model Description

The original model is from BERT-base-uncased trained from Wikipedia+BookCorpus.
Models are post-trained from Amazon Dataset and Yelp Dataset.


Loading the post-trained weights are as simple as, e.g.,

import torch
from transformers import AutoModel, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("activebus/BERT-PT_rest")
model = AutoModel.from_pretrained("activebus/BERT-PT_rest")

Evaluation Results

Check our NAACL paper


If you find this work useful, please cite as following.

    title = "BERT Post-Training for Review Reading Comprehension and Aspect-based Sentiment Analysis",
    author = "Xu, Hu and Liu, Bing and Shu, Lei and Yu, Philip S.",
    booktitle = "Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics",
    month = "jun",
    year = "2019",