[Retracted] MKA: A Scalable Medical Knowledge-Assisted Mechanism for Generative Models on Medical Conversation Tasks
Algorithm 2
Pseudocode of the topic detector.
Algorithm 2: the detection of the question topic
Input:
Key phrase set . ( is the set for disease topic, is the set for symptom topic, is the set for drug topic, is the set for check topic, is the set for the positive food topic, and is the set for the negative food topic.)
The patient question in conversation turn .
Similarity coefficient for checking whether the phrase is inside of the patient question