Skip to content

f-window/DialMed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DialMed

This repository is the code and data for DialMed: A Dataset for Dialogue-based Medication Recommendation, COLING 2022 (pdf).

model

Figue 1: This is the framework of DDN(Dialogue structure and Disease knowledge aware Network) which is a model aiming to dialogue based medication recommendation.

Requirements

pytorch
numpy
sklearn
transformers
tqdm

Usage

Download the kg info and kg embedding (pretrained with TransR)

For the train, eval, test of DDN ,

python train.py --data_path DialMed/data/ --cuda 0

File Tree

DialMed
├── LICENSE
├── README.md
├── src
│   ├── data.py
│   ├── model.py
│   ├── train.py
│   └── utils.py
├── data
│   ├── dataset
│   │   ├── label.json
│   │   ├── train.txt
│   │   ├── test.txt
│   │   └── dev.txt
│   ├── log
│   └── kg
│       ├── kg_info.pkl
│       └── transr_embedding_500.pkl
└── appendix
    ├── ddi.json
    ├── medication_normalization.json
    └── statistic_medication_ratio.py

About

This repository is the code and data for DialMed: A Dataset for Dialogue-based Medication Recommendation, COLING 2022.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages