Traditional Chinese Medicine Text Similarity Calculation Model Based on the Bidirectional Temporal Siamese Network
Algorithm 1
Bidirectional temporal Siamese network (BTSN).
(1)
Input: dataset D
(2)
Process:
(4)
The dataset D is divided into training set and test set according to 7 : 3
(5)
Import the pretrained language model ERNIE to obtain the dynamic character vector. The similarity calculation model is obtained through the training set.