Home

Awesome

Chinese Definition Modeling

This repository is connected with Chinese Definition Modeling task.

The src directory consists of three models:

Paper Link: https://arxiv.org/abs/1905.06512

Contact: cunliang.kong@outlook.com

Dataset Construction

Requirements

Construction

The dataset construction procedure follows the README.mdfile in the scripts/make_dataset directory.

We have also written an integreted script make_dataset.sh in the directory of src.

cd src
chmod +x make_dataset.sh
./make_dataset.sh

The CWN dataset we used in the experiments is in the dataset/cwn directory.

Baseline

The baseline model is based on Websail-NU/torch-defseq, and detailed instruction can be found there.

Adaptive-Attention Model

The Adaptive-Attention model is in the directory of src/aam, and can run as follows:

Self- and Adaptive-Attention Model

The Self- and Adaptive-Attention Model is in the directory of src/saam. The instruction of this model is as follows: