← 开源
songyouwei

ABSA-PyTorch

Aspect Based Sentiment Analysis, PyTorch Implementations. 基于方面的情感分析,使用PyTorch实现。

Model DevelopmentDomain-specific trainingPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
2.12k
Star
517
Fork
+0
本周
11
贡献者
创建于 2018-05-09 · 更新于 2026-09-29 · 今日第 8966 名
主要开发者

songyouwei/ABSA-PyTorch 排名第 8,966,有 2,115 个星标。

同类别比较

songyouwei/ABSA-PyTorch 排名第 8,966,此处有 8 个同类条目;peteromallet/dataclaw 排名第 8,963。

同类别比较
名称排名指标
atriumlts/subpixel8,951
语言:
Jupyter Notebook
星标数:
2,124
分叉数:
298
简介:
subpixel: A subpixel convnet for super resolution with Tensorflow
handtracking-io/yoha8,955
语言:
TypeScript
星标数:
2,122
分叉数:
149
简介:
A practical hand tracking engine.
sfujim/TD38,962
语言:
Python
星标数:
2,117
分叉数:
480
简介:
Author's PyTorch implementation of TD3 for OpenAI gym tasks
peteromallet/dataclaw8,963
语言:
Python
星标数:
2,116
分叉数:
230
简介:
Agent harness to publish your agent chat history as Huggingface datasets.
facebookresearch/SentEval8,969
语言:
Python
星标数:
2,111
分叉数:
306
简介:
A python tool for evaluating the quality of sentence embeddings.
bubbliiiing/yolo3-pytorch8,971
语言:
Python
星标数:
2,110
分叉数:
573
简介:
这是一个yolo3-pytorch的源码,可以用于训练自己的模型。
asappresearch/sru8,973
语言:
Python
星标数:
2,108
分叉数:
304
简介:
Training RNNs as Fast as CNNs (https://arxiv.org/abs/1709.02755)
ContinualAI/avalanche8,976
语言:
Python
星标数:
2,106
分叉数:
323
简介:
Avalanche: an End-to-End Library for Continual Learning based on PyTorch.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Domain-specific training
星标数2,115
分叉数517
贡献者11
创建日期2018-05-09
更新日期2026-09-29
1 天星标数0
7 天星标数0
排名8,966
上次排名9,022
排名变化56
7 天星标排名12,140
上次 7 天星标排名12,199
7 天星标排名变化59
总星标排名6,063
上次总星标排名6,059
总星标排名变化-4
README 摘录

ABSA-PyTorch Aspect Based Sentiment Analysis, PyTorch Implementations. 7 transformers To install requirements, run . For non-BERT-based models, GloVe pre-trained word vectors are required, please refer to data_utils. Usage Training All implemented models are listed in models directory. py for both non-BERT-based models and BERT-based models. Tips For non-BERT-based models, training procedure is not very stable. BERT-based models are more sensitive to hyperparameters (especially learning rate) on small data sets, see

this issue. Fine-tuning on the specific task is necessary for releasing the true power of BERT. Framework For flexible training/inference and aspect term extraction, try PyABSA, which includes all the models in this repository. "Pre-trained Models for Natural Language Processing: A Survey. [[pdf]]( Zhang, Lei, Shuai Wang, and Bing Liu. "Deep Learning for Sentiment Analysis: A Survey. "Recent trends in deep learning based natural language processing. [[pdf]]( BERT-based models BERT-ADA (official) Rietzler, Alexander, et al

. "Adapt or get left behind: Domain adaptation through bert language model finetuning for aspect-target sentiment classification. "Bert post-training for review reading comprehension and aspect-based sentiment analysis. [pdf] ABSA-BERT-pair (official) Sun, Chi, Luyao Huang, and Xipeng Qiu. "Utilizing bert for aspect-based sentiment analysis via constructing auxiliary sentence. py) (official) Zeng Biqing, Yang Heng, et al. "LCF: A Local Context Focus Mechanism for Aspect-Based Sentiment Classification. "Attentional Encoder Network for Targeted Sentiment Classification. [[pdf]]( BERT

for Sentence Pair Classification (bert_spc. "Bert: Pre-training of deep bidirectional transformers for language understanding. [[pdf]]( Non-BERT-based models ASGCN (asgcn. "Aspect-based Sentiment Classification with Aspect-specific Graph Convolutional Networks. " Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. "Multi-grained Attention Network for Aspect-Level Sentiment Classification. " Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing. "Aspect Level Sentiment Classification with Attention-over-Attention Neural Networks. "Transformation Networks for Target

-Oriented Sentiment Classification. "Content Attention Model for Aspect Based Sentiment Analysis. " Proceedings of the 2018 World Wide Web Conference on World Wide Web. International World Wide Web Conferences Steering Committee, 2018. "Recurrent Attention Network on Memory for Aspect Sentiment Analysis. " Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing. "Aspect Level Sentiment Classification with Deep Memory Network. " Conference on Empirical Methods in Natural Language Processing 2016:214-224. "Interactive Attention Networks for Aspect-Level Sentiment Classification. py

) Wang, Yequan, Minlie Huang, and Li Zhao. "Attention-based lstm for aspect-level sentiment classification. " Proceedings of the 2016 conference on empirical methods in natural language processing. "Effective LSTMs for Target-Dependent Sentiment Classification. " Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers. py) Hochreiter, Sepp, and Jürgen Schmidhuber. [pdf] Note on running with RTX30* If you are running on RTX30 series there may be some compatibility issues between installed/required versions of torch, cuda

. Contributors Thanks goes to these wonderful people: This project follows the all-contributors specification.

常见问题

记录了多少星标和分叉?

songyouwei/ABSA-PyTorch 有 2,115 个星标和 517 个分叉。

仓库排名是多少?

songyouwei/ABSA-PyTorch 排名第 8,966。

记录的语言和类别是什么?

songyouwei/ABSA-PyTorch 有 2,115 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

songyouwei/ABSA-PyTorch 与 peteromallet/dataclaw 比较,后者排名第 8,963,有 2,116 个星标。

README

ABSA-PyTorch

Aspect Based Sentiment Analysis, PyTorch Implementations.

基于方面的情感分析,使用PyTorch实现。

Requirement

  • pytorch >= 0.4.0
  • numpy >= 1.13.3
  • sklearn
  • python 3.6 / 3.7
  • transformers

To install requirements, run pip install -r requirements.txt.

Usage

Training

python train.py --model_name bert_spc --dataset restaurant

Inference

  • Refer to infer_example.py for both non-BERT-based models and BERT-based models.

Tips

  • For non-BERT-based models, training procedure is not very stable.
  • BERT-based models are more sensitive to hyperparameters (especially learning rate) on small data sets, see this issue.
  • Fine-tuning on the specific task is necessary for releasing the true power of BERT.

Framework

For flexible training/inference and aspect term extraction, try PyABSA, which includes all the models in this repository.

Reviews / Surveys

Qiu, Xipeng, et al. "Pre-trained Models for Natural Language Processing: A Survey." arXiv preprint arXiv:2003.08271 (2020). [pdf]

Zhang, Lei, Shuai Wang, and Bing Liu. "Deep Learning for Sentiment Analysis: A Survey." arXiv preprint arXiv:1801.07883 (2018). [pdf]

Young, Tom, et al. "Recent trends in deep learning based natural language processing." arXiv preprint arXiv:1708.02709 (2017). [pdf]

BERT-based models

BERT-ADA (official)

Rietzler, Alexander, et al. "Adapt or get left behind: Domain adaptation through bert language model finetuning for aspect-target sentiment classification." arXiv preprint arXiv:1908.11860 (2019). [pdf]

BERR-PT (official)

Xu, Hu, et al. "Bert post-training for review reading comprehension and aspect-based sentiment analysis." arXiv preprint arXiv:1904.02232 (2019). [pdf]

ABSA-BERT-pair (official)

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]

LCF-BERT (lcf_bert.py) (official)

Zeng Biqing, Yang Heng, et al. "LCF: A Local Context Focus Mechanism for Aspect-Based Sentiment Classification." Applied Sciences. 2019, 9, 3389. [pdf]

AEN-BERT (aen.py)

Song, Youwei, et al. "Attentional Encoder Network for Targeted Sentiment Classification." arXiv preprint arXiv:1902.09314 (2019). [pdf]

BERT for Sentence Pair Classification (bert_spc.py)

Devlin, Jacob, et al. "Bert: Pre-training of deep bidirectional transformers for language understanding." arXiv preprint arXiv:1810.04805 (2018). [pdf]

Non-BERT-based models

ASGCN (asgcn.py) (official)

Zhang, Chen, et al. "Aspect-based Sentiment Classification with Aspect-specific Graph Convolutional Networks." Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. 2019. [pdf]

MGAN (mgan.py)

Fan, Feifan, et al. "Multi-grained Attention Network for Aspect-Level Sentiment Classification." Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing. 2018. [pdf]

AOA (aoa.py)

Huang, Binxuan, et al. "Aspect Level Sentiment Classification with Attention-over-Attention Neural Networks." arXiv preprint arXiv:1804.06536 (2018). [pdf]

TNet (tnet_lf.py) (official)

Li, Xin, et al. "Transformation Networks for Target-Oriented Sentiment Classification." arXiv preprint arXiv:1805.01086 (2018). [pdf]

Cabasc (cabasc.py)

Liu, Qiao, et al. "Content Attention Model for Aspect Based Sentiment Analysis." Proceedings of the 2018 World Wide Web Conference on World Wide Web. International World Wide Web Conferences Steering Committee, 2018.

RAM (ram.py)

Chen, Peng, et al. "Recurrent Attention Network on Memory for Aspect Sentiment Analysis." Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing. 2017. [pdf]

MemNet (memnet.py) (official)

Tang, Duyu, B. Qin, and T. Liu. "Aspect Level Sentiment Classification with Deep Memory Network." Conference on Empirical Methods in Natural Language Processing 2016:214-224. [pdf]

IAN (ian.py)

Ma, Dehong, et al. "Interactive Attention Networks for Aspect-Level Sentiment Classification." arXiv preprint arXiv:1709.00893 (2017). [pdf]

ATAE-LSTM (atae_lstm.py)

Wang, Yequan, Minlie Huang, and Li Zhao. "Attention-based lstm for aspect-level sentiment classification." Proceedings of the 2016 conference on empirical methods in natural language processing. 2016.

TD-LSTM (td_lstm.py, tc_lstm.py) (official)

Tang, Duyu, et al. "Effective LSTMs for Target-Dependent Sentiment Classification." Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers. 2016. [pdf]

LSTM (lstm.py)

Hochreiter, Sepp, and Jürgen Schmidhuber. "Long short-term memory." Neural computation 9.8 (1997): 1735-1780. [pdf]

Note on running with RTX30*

If you are running on RTX30 series there may be some compatibility issues between installed/required versions of torch, cuda. In that case try using requirements_rtx30.txt instead of requirements.txt.

Contributors

Thanks goes to these wonderful people:


Alberto Paz

💻


jiangtao

💻


WhereIsMyHead

💻


songyouwei

💻


YangHeng

💻


rmarcacini

💻


Yikai Zhang

💻


Alexey Naiden

💻


hbeybutyan

💻


Pradeesh

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Licence

MIT

排名相邻
同类项目