Papers › Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentence

Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentence

22 Mar 2019NAACL 2019 6arXiv:1903.09588archive 2025-07-28

Chi Sun, Luyao Huang, Xipeng Qiu

Aspect-based sentiment analysis (ABSA), which aims to identify fine-grained opinion polarity towards a specific aspect, is a challenging subtask of sentiment analysis (SA). In this paper, we construct an auxiliary sentence from the aspect and convert ABSA to a sentence-pair classification task, such as question answering (QA) and natural language inference (NLI). We fine-tune the pre-trained model from BERT and achieve new state-of-the-art results on SentiHood and SemEval-2014 Task 4 datasets.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 27 code samples harvested from 3 repositories linked to this paper: 19 ran (of which 0 constructed an object rather than computing a result; 14 with no instrument failure: 3 honoured, 0 violated, 11 with no contract checked; 5 where Syntology's instrument failed) · 8 unverified. Where Syntology's instrument failed: 4 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 10 samples from 1 repository, 8 ran (6 with no instrument failure; 2 where Syntology's instrument failed); community (archive-listed): 17 samples from 2 repositories, 11 ran (8 with no instrument failure; 3 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 1 of its repositories that Syntology harvested for other papers:

Levels written between 2026-09-22 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

HSLCY/ABSA-BERT-pair officialmentioned in paperpytorchMITSyntology: 10 samples, 8 ran (2 instrument-failed) · 2 unverified report
LorenzoAgnolucci/BERT_for_ABSA mentioned on GitHubpytorchSyntology: not harvested report
anshulwadhawan/ABSA mentioned on GitHubpytorchSyntology: 4 samples, 3 ran (3 instrument-failed) · 1 unverified report
atharvajdhumal/Sentiment-Analysis mentioned on GitHubpytorchSyntology: not harvested report
mwbrulhardt/yelp-absa mentioned on GitHubpytorchMITSyntology: not harvested report
recommeddit/labs mentioned on GitHubpytorchMITSyntology: 13 samples, 8 ran (0 instrument-failed) · 5 unverified report
ywu94/Code-Notes mentioned on GitHubpytorchMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Multi-Sample Dropout for Accelerated Training and Better Generalization (arXiv:1905.09788; that paper's own run record: 7 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 0 honoured, 0 violated, 6 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
Mind23-2/MindCode-166 Syntology: not harvested report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

27 samples harvested: 19 ran (of which 0 constructed an object rather than computing a result; 14 with no instrument failure: 3 honoured, 0 violated, 11 with no contract checked; 5 where Syntology's instrument failed) · 8 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · honoured contract
4ran · our draft was wrong
1ran; the contract check could not run
11ran
8unverified

Licence: 9 of the 27 samples are pointer only, meaning Syntology does not serve that copy's text. For 5 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

HSLCY/ABSA-BERT-pair official repository 10 samples, 8 ran (2 instrument-failed) · 2 unverified
convert_to_unicode in 40 papers tokenization.py ran · our draft was wrong fingerprinted MIT (permissive) here; the stored copy is pointer only · 1923fc05163d207d · report fixture: signature text:str/0/str · returned str · level recorded 2026-09-22
gelu in 308 papers
census: 43 implementations from 74 papers, 6 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 2, kind float, dtype float32
modeling.py ran · honoured contract fingerprinted MIT (permissive) here; the stored copy is pointer only · 40e9fee2e0b7e278 · report fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22
get_aspect_idx generate/data_utils_sentihood.py ran MIT (permissive) · d6ed09aeb5d75d72 · report fixture: signature data:list/1/tuple, aspect2idx:dict/0/? · returned ndarray · level recorded 2026-09-25
load_vocab in 107 papers tokenization.py ran MIT (permissive) here; the stored copy is pointer only · deb4d1793cf3ba73 · report fixture: signature vocab_file:str/0/str · returned OrderedDict · level recorded 2026-09-24
parse_sentihood_json generate/data_utils_sentihood.py ran MIT (permissive) · a2d78c72a03a8f69 · report fixture: signature in_file:str/0/str · returned list · level recorded 2026-09-25
printable_text in 36 papers tokenization.py ran · our draft was wrong MIT (permissive) · 0e5615f8994003cf · report fixture: signature text:str/0/str · returned str · level recorded 2026-09-26
warmup_constant in 30 papers optimization.py ran · honoured contract fingerprinted MIT (permissive) here; the stored copy is pointer only · e7d542062316094a · report fixture: signature x:float/0/float, warmup:float/0/float · returned float · level recorded 2026-09-22
warmup_linear in 45 papers optimization.py ran · honoured contract fingerprinted MIT (permissive) · c58d57224530d17e · report fixture: signature x:float/0/float, warmup:float/0/float · returned float · level recorded 2026-09-22
load_task in 6 papers generate/data_utils_sentihood.py unverified MIT (permissive) · 1aab22fc467bd978 · report
warmup_cosine in 30 papers optimization.py unverified MIT (permissive) here; the stored copy is pointer only · 35f7cddf90dd05d4 · report
anshulwadhawan/ABSA community (archive-listed) 4 samples, 3 ran (3 instrument-failed) · 1 unverified
convert_examples_to_features in 134 papers Code/run_classifier_TABSA.py ran · our draft was wrong no licence file found · pointer only · 582ae35fabc0e404 · report fixture: signature examples:list/1/Example, label_list:list/1/str, max_seq_length:int/0/int, tokenizer:SimpleTokenizer/0/? · returned list · level recorded 2026-09-22
get_y_pred Code/evaluation.py ran · our draft was wrong no licence file found · pointer only · d4e18530f866f88d · report fixture: signature task_name:str/0/str, pred_data_dir:str/0/str · returned tuple · level recorded 2026-09-22
sentihood_strict_acc Code/evaluation.py ran; the contract check could not run (RAISES) · metamorphic tier: well formed fingerprinted no licence file found · pointer only · 367e923376717b34 · report fixture: signature y_true:list/1/int, y_pred:list/1/int · returned float · level recorded 2026-09-22
get_y_true Code/evaluation.py unverified no licence file found · pointer only · c600a29e59dbf0e5 · report
recommeddit/labs community (archive-listed) 13 samples, 8 ran (0 instrument-failed) · 5 unverified
adjust_upvotes AdityaStuff/scoring.py ran fingerprinted MIT (permissive) · d69b4cda2593fe81 · report fixture: signature upvotes:int/0/int · returned float · level recorded 2026-09-24
average in 21 papers AdityaStuff/scoring.py ran fingerprinted MIT (permissive) · 8816ce99f25f695a · report fixture: signature lst:list/1/int · returned float · level recorded 2026-09-24
clean_string in 21 papers AnmolStuff/gsearch.py ran fingerprinted MIT (permissive) · e27773680535fad6 · report fixture: signature s:str/0/str · returned str · level recorded 2026-09-24
comment_to_dict Archive/comments.py ran MIT (permissive) · 54fb4f9b7c2612ad · report fixture: signature comment:MockComment/0/? · returned dict · level recorded 2026-09-24
config in 11 papers AnmolStuff/config.py ran MIT (permissive) · 5e3c1d7938dd9f6e · report fixture: signature filename:str/0/str, section:str/0/str · returned dict · level recorded 2026-09-24
post_to_dict Archive/comments.py ran MIT (permissive) · 7fdff9de0bd12466 · report fixture: signature post:Post/0/? · returned dict · level recorded 2026-09-24
simplify_title Archive/comment_sentiment.py ran MIT (permissive) · 0c91cc2976ed3944 · report fixture: signature titles:list/1/str · returned tuple · level recorded 2026-09-24
top_wikidata AnmolStuff/Wikidup.py ran MIT (permissive) · bdf418db2ef859b5 · report fixture: signature query:str/0/str, n:int/0/int · returned list · level recorded 2026-09-24
get_post Archive/RedditTestMonkeyLearn.py unverified MIT (permissive) · 92b1c2ed6f452959 · report
is_english AnmolStuff/isenglish.py unverified MIT (permissive) · d4bb1f715290abf6 · report
process_results in 11 papers AnmolStuff/gsearch.py unverified MIT (permissive) · 56f00d998b03da1b · report
top_wiki AnmolStuff/Wikidup.py unverified MIT (permissive) · efb6c84ff1c9f98f · report
wikidata AnmolStuff/Wikidup.py unverified MIT (permissive) · 8cdfb5b24b53084a · report

Tasks

Aspect-Based Sentiment AnalysisAspect-Based Sentiment Analysis (ABSA)General ClassificationNatural Language InferenceQuestion AnsweringSentenceSentence-Pair ClassificationSentiment Analysis

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Aspect Category Detection SemEval 2014 Task 4 Subtask 3 BERT-pair-NLI-B F1 score 92.18 #1 of 1 Archive leaderboard report
Aspect Category Detection SemEval 2014 Task 4 Subtask 3 BERT-pair-NLI-B Precision 93.57 #1 of 1 Archive leaderboard report
Aspect Category Detection SemEval 2014 Task 4 Subtask 3 BERT-pair-NLI-B Recall 90.83 #1 of 1 Archive leaderboard report
Aspect-Based Sentiment Analysis (ABSA) SemEval 2014 Task 4 Subtask 4 BERT-pair-QA-B Accuracy (3-way) 89.9 #1 of 2 Archive leaderboard report
Aspect-Based Sentiment Analysis (ABSA) SemEval 2014 Task 4 Subtask 4 BERT-pair-QA-B Accuracy (4-way) 85.9 #1 of 2 Archive leaderboard report
Aspect-Based Sentiment Analysis (ABSA) SemEval 2014 Task 4 Subtask 4 BERT-pair-QA-B Binary Accuracy 95.6 #1 of 2 Archive leaderboard report
Aspect-Based Sentiment Analysis (ABSA) Sentihood BERT-pair-QA-B Aspect 87.9 #1 of 5 Archive leaderboard report
Aspect-Based Sentiment Analysis (ABSA) Sentihood BERT-pair-QA-B Sentiment 93.3 #1 of 5 Archive leaderboard report
Aspect-Based Sentiment Analysis (ABSA) Sentihood BERT-pair-QA-M Aspect 86.4 #2 of 5 Archive leaderboard report
Aspect-Based Sentiment Analysis (ABSA) Sentihood BERT-pair-QA-M Sentiment 93.6 #2 of 5 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections