Research Article

[Retracted] MKA: A Scalable Medical Knowledge-Assisted Mechanism for Generative Models on Medical Conversation Tasks

Algorithm 1

Pseudocode of the medical knowledge subgraph generator.
Algorithm 1: the generation of the medical knowledge subgraph
Input:
Medical knowledge base
Patient self-report . ( represents the blank for the patient’s ideal clinical department, and represents the blank for the description of the patient’s disease or symptom.)
Output:
Medical knowledge subgraph
Main:
1: if exists then
2:   Extract the from .
3:   , where and
4:   , where .
5: end if
6: if exists then
7:   Extract the from
8:   , where and
9:   , where,, (1) if , ; (2) if
10: end if
11: