{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/bert-post-training-for-review-reading","title":"BERT Post-Training for Review Reading Comprehension and Aspect-based Sentiment Analysis","arxiv_id":"1904.02232","date":"2019-04-03","proceeding":"NAACL 2019 6","authors":["Hu Xu","Bing Liu","Lei Shu","Philip S. Yu"],"abstract":"Question-answering plays an important role in e-commerce as it allows potential customers to actively seek crucial information about products or services to help their purchase decision making. Inspired by the recent success of machine reading comprehension (MRC) on formal documents, this paper explores the potential of turning customer reviews into a large source of knowledge that can be exploited to answer user questions.~We call this problem Review Reading Comprehension (RRC). To the best of our knowledge, no existing work has been done on RRC. In this work, we first build an RRC dataset called ReviewRC based on a popular benchmark for aspect-based sentiment analysis. Since ReviewRC has limited training examples for RRC (and also for aspect-based sentiment analysis), we then explore a novel post-training approach on the popular language model BERT to enhance the performance of fine-tuning of BERT for RRC. To show the generality of the approach, the proposed post-training is also applied to some other review-based tasks such as aspect extraction and aspect sentiment classification in aspect-based sentiment analysis. Experimental results demonstrate that the proposed post-training is highly effective. The datasets and code are available at https://www.cs.uic.edu/~hxu/.","url_abs":"https://arxiv.org/abs/1904.02232v2","url_pdf":"https://arxiv.org/pdf/1904.02232v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"bert-post-training-for-review-reading","repo_url":"https://github.com/howardhsu/BERT-for-RRC-ABSA","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"aspect-extraction","task_name":"Aspect Extraction"},{"task_slug":"aspect-based-sentiment-analysis-1","task_name":"Aspect-Based Sentiment Analysis"},{"task_slug":"aspect-based-sentiment-analysis","task_name":"Aspect-Based Sentiment Analysis (ABSA)"},{"task_slug":"reading-comprehension","task_name":"Reading Comprehension"},{"task_slug":"sentiment-classification","task_name":"Sentiment Classification"}],"methods":[{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"attention-dropout","method_name":"Attention Dropout"},{"method_slug":"bert","method_name":"BERT"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"linear-warmup-with-linear-decay","method_name":"Linear Warmup With Linear Decay"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"weight-decay","method_name":"Weight Decay"},{"method_slug":"wordpiece","method_name":"WordPiece"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/aspect-based-sentiment-analysis-on-semeval-7","task":"Aspect-Based Sentiment Analysis (ABSA)","dataset":"SemEval 2014 Task 4 Sub Task 1","model":"BERT-PT","rank_in_archive_order":2,"of":4,"metrics":{"Laptop (F1)":"84.26","Restaurant (F1)":"77.97"},"uses_additional_data":false},{"leaderboard":"/sota/aspect-based-sentiment-analysis-on-semeval","task":"Aspect-Based Sentiment Analysis (ABSA)","dataset":"SemEval-2014 Task-4","model":"BERT-PT","rank_in_archive_order":17,"of":48,"metrics":{"Laptop (Acc)":"78.07","Mean Acc (Restaurant + Laptop)":"81.51","Restaurant (Acc)":"84.95"},"uses_additional_data":true}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1904.02232","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1904.02232"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/howardhsu/BERT-for-RRC-ABSA","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":1,"ran_honours":1,"unverified":5},"by_repo_kind":{"listed":{"samples":7,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"b40fc12ef51e9ccc","entry":"create_masked_lm_predictions","repo":"howardhsu/BERT-for-RRC-ABSA","repo_kind":"listed","path":"pytorch-pretrained-bert/src/gen_pt_review.py","file_url":"https://github.com/howardhsu/BERT-for-RRC-ABSA/blob/HEAD/pytorch-pretrained-bert/src/gen_pt_review.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b40fc12ef51e9ccc"}},{"code_sha256_prefix":"c58d57224530d17e","entry":"warmup_linear","repo":"howardhsu/BERT-for-RRC-ABSA","repo_kind":"listed","path":"pytorch-pretrained-bert/src/run_rrc.py","file_url":"https://github.com/howardhsu/BERT-for-RRC-ABSA/blob/HEAD/pytorch-pretrained-bert/src/run_rrc.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c58d57224530d17e"}},{"code_sha256_prefix":"2b7167d132905cdd","entry":"convert_examples_to_features","repo":"howardhsu/BERT-for-RRC-ABSA","repo_kind":"listed","path":"pytorch-pretrained-bert/src/absa_data_utils.py","file_url":"https://github.com/howardhsu/BERT-for-RRC-ABSA/blob/HEAD/pytorch-pretrained-bert/src/absa_data_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2b7167d132905cdd"}},{"code_sha256_prefix":"88d0c4f20672bdb6","entry":"convert_examples_to_features","repo":"howardhsu/BERT-for-RRC-ABSA","repo_kind":"listed","path":"pytorch-pretrained-bert/src/squad_data_utils.py","file_url":"https://github.com/howardhsu/BERT-for-RRC-ABSA/blob/HEAD/pytorch-pretrained-bert/src/squad_data_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"88d0c4f20672bdb6"}},{"code_sha256_prefix":"ff2e475360e82c7f","entry":"create_instances_from_document","repo":"howardhsu/BERT-for-RRC-ABSA","repo_kind":"listed","path":"pytorch-pretrained-bert/src/gen_pt_review.py","file_url":"https://github.com/howardhsu/BERT-for-RRC-ABSA/blob/HEAD/pytorch-pretrained-bert/src/gen_pt_review.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ff2e475360e82c7f"}},{"code_sha256_prefix":"82a2777ee7a78bd8","entry":"create_training_instances","repo":"howardhsu/BERT-for-RRC-ABSA","repo_kind":"listed","path":"pytorch-pretrained-bert/src/gen_pt_review.py","file_url":"https://github.com/howardhsu/BERT-for-RRC-ABSA/blob/HEAD/pytorch-pretrained-bert/src/gen_pt_review.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"82a2777ee7a78bd8"}},{"code_sha256_prefix":"aeb20ed962ccdd7f","entry":"evaluate","repo":"howardhsu/BERT-for-RRC-ABSA","repo_kind":"listed","path":"pytorch-pretrained-bert/eval/evaluate_ae.py","file_url":"https://github.com/howardhsu/BERT-for-RRC-ABSA/blob/HEAD/pytorch-pretrained-bert/eval/evaluate_ae.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"aeb20ed962ccdd7f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}