This repo contains the data and code for our paper CL-XABSA: Contrastive Learning for Cross-lingual Aspect-based Sentiment Analysis.
- torch==1.3.1
- numpy==1.19.4
- transformers==3.4.0 (You can also use the static version in this repo)
- sentencepiece==0.1.91
- tokenizer==0.9.2
- sacremoses==0.0.43
If the code is used in your research, please star our repo and cite our paper as follows:
@ARTICLE{10190176,
author={Lin, Nankai and Fu, Yingwen and Lin, Xiaotian and Zhou, Dong and Yang, Aimin and Jiang, Shengyi},
journal={IEEE/ACM Transactions on Audio, Speech, and Language Processing},
title={CL-XABSA: Contrastive Learning for Cross-lingual Aspect-based Sentiment Analysis},
year={2023},
volume={},
number={},
pages={1-12},
doi={10.1109/TASLP.2023.3297964}}
The code of XABSA.