Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TD-BERT #147

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
third_party
state_dict


__pycache__/
*.dat
*.h5
Expand Down Expand Up @@ -35,4 +39,4 @@ Thumbs.db
*.class
# generated files
bin/
gen/
gen/
6 changes: 6 additions & 0 deletions .ipynb_checkpoints/Untitled-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ Xu, Hu, et al. "Bert post-training for review reading comprehension and aspect-b

Sun, Chi, Luyao Huang, and Xipeng Qiu. "Utilizing bert for aspect-based sentiment analysis via constructing auxiliary sentence." arXiv preprint arXiv:1903.09588 (2019). [[pdf](https://arxiv.org/pdf/1903.09588.pdf)]

### TD-BERT([td_bert.py](./models/td_bert.py))
Z. Gao, A. Feng, X. Song and X. Wu, "Target-Dependent Sentiment Classification With BERT," in IEEE Access, vol. 7, pp. 154290-154299, 2019, doi: 10.1109/ACCESS.2019.2946594.[[pdf]](https://ieeexplore.ieee.org/abstract/document/8864964)

### LCF-BERT ([lcf_bert.py](./models/lcf_bert.py)) ([official](https://github.com/yangheng95/LCF-ABSA))

Zeng Biqing, Yang Heng, et al. "LCF: A Local Context Focus Mechanism for Aspect-Based Sentiment Classification." Applied Sciences. 2019, 9, 3389. [[pdf]](https://www.mdpi.com/2076-3417/9/16/3389/pdf)
Expand Down
25 changes: 25 additions & 0 deletions RESULTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# BERT_SPC
## restaurant
test_acc: 0.8554, test_f1: 0.7862
## restaurant_random_rest_cate
test_acc: 0.8554, test_f1: 0.7862
## restaurant_random_rest
test_acc: 0.8250, test_f1: 0.7357
## restaurant_random_laptop
test_acc: 0.8116, test_f1: 0.7039


# BERT_SPC With Adversarial Training(0.5)
## restaurant
test_acc: 0.8134, test_f1: 0.7041
## restaurant_random_rest
## restaurant_random_laptop

# BERT_SPC With Adversarial Training(1)
## restaurant
## restaurant_random_rest
## restaurant_random_laptop

# TD_BERT

# ROBERTA-Base
Loading