Skip to content

The code of the joint theme and emotion classification model of chinese classical poetry.

License

Notifications You must be signed in to change notification settings

yuting-wei/Poka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poka

The code of the joint theme and emotion classification model of chinese classical poetry.

Setup

  • Python >= 3.6
  • torch >= 0.4.1
  • numpy >= 1.17.4

BERT-CCPoem Embedding

  • Download Bert-CCPoem v1.0:
wget https://thunlp.oss-cn-qingdao.aliyuncs.com/BERT_CCPoem_v1.zip
unzip BERT_CCPoem_v1.zip

Train

python train.py config/poka_poetry.json

Evaluation

python evaluate.py config/poka_poetry.json

Citation

Please cite our paper if you use our code, dataset, or compare with our model:

@ARTICLE{10737425,
  author={Wei, Yuting and Hu, Linmei and Zhu, Yangfu and Zhao, Jiaqi and Wu, Bin},
  journal={IEEE/ACM Transactions on Audio, Speech, and Language Processing}, 
  title={Knowledge-Guided Transformer for Joint Theme and Emotion Classification of Chinese Classical Poetry}, 
  year={2024},
  volume={32},
  pages={4783-4794},
  doi={10.1109/TASLP.2024.3487409}}

About

The code of the joint theme and emotion classification model of chinese classical poetry.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages