Research Article
[Retracted] MKA: A Scalable Medical Knowledge-Assisted Mechanism for Generative Models on Medical Conversation Tasks
Algorithm 3
Pseudocode of the medical knowledge extractor.
| Algorithm 3: the extraction of medical knowledge information tuple | | Input: | | Medical knowledge base | | Question topic tuple in conversation turn | | Corresponding and entities in patient self-report | | Output: | | Medical knowledge information tuple in conversation turn | | Main: | | 1: | | 2: for in do | | 3: ifthen | | 4: Append all entities except in to | | 5: else ifthen | | 6: Append all entities except in to | | 7: else ifthen | | 8: Append all entities in to | | 9: else ifthen | | 10: Append all entities in to | | 11: else ifthen | | 12: Append all entities connected with relation in to | | 13: else ifthen | | 14: Append all entities connected with relation in to | | 15: end if | | 16: end for |
|