Skip to content

code for the NAACL-2021 paper: Decompose, Fuse and Generate: A Formation-Informed Method for Chinese Definition Generation

License

Notifications You must be signed in to change notification settings

Hunter-DDM/DeFT-naacl2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeFT-NAACL2021

  • Paper: Decompose, Fuse and Generate: A Formation-Informed Method for Chinese Definition Generation (URL)

Requirements

  • Pytorch (1.6.0)
  • numpy (1.19.4)
  • nltk (3.5)
  • jieba (0.42.1)
  • gensim (3.8.3)

Prepare Required Data

Download our formation-informed DG dataset (URL will be released later) and put it into ./data/morpheme/

Download gigaword Chinese word vectors and put it into ./data/morpheme/

Run Experiments

bash run_morphemes.sh

You can change the options defined in main.py to train models under different configurations.

Citation

If you use this code for your research, please kindly cite our NAACL-2021 paper:

@inproceedings{zheng2021morpheme,
  title={Decompose, Fuse and Generate: A Formation-Informed Method for Chinese Definition Generation},
  author={Zheng, Hua and Dai, Damai and Li, Lei and Liu, Tianyu and Sui, Zhifang and Chang, Baobao and Liu, Yang},
  booktitle={NAACL 2021, to specify later}, 
  pages={to specify later},
  year={2021}
}

Acknowledgements

We refer to ishiwatari-naacl2019 to develop our project (DeFT).

Contact

Damai Dai: daidamai@pku.edu.cn Hua Zheng: zhenghua@pku.edu.cn

About

code for the NAACL-2021 paper: Decompose, Fuse and Generate: A Formation-Informed Method for Chinese Definition Generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published