| Literature DB >> 36213025 |
Jinghong Qi1, Xinli Jia2.
Abstract
In order to improve the accuracy of ideological and political education (IPE) text scoring, an improved short-text similarity calculation model based on transformer is proposed. This model takes the DSSM model as the basic framework and uses the Bert model to realize text representation and solve polysemy problem. The transformer encoding component is used to extract the characteristics of the text and obtain the internal information of the text. With the help of the encoding component, the two texts can interact with information on multiple levels. Finally, the semantic similarity between two texts is calculated by concatenation vector inference.Entities:
Mesh:
Year: 2022 PMID: 36213025 PMCID: PMC9536923 DOI: 10.1155/2022/8354429
Source DB: PubMed Journal: J Environ Public Health ISSN: 1687-9805
Figure 1The process of automatic scoring algorithm of subjective item in politics ideological and political course.
Figure 2Structure of the transformer encoder.
Experimental parameter setting.
| Parameter | Value |
|---|---|
| Encoder layers | 2 |
| Number of attention heads | 8 |
| Hidden layer dimension | 768 |
| Dropout | 0.10 |
| Model optimizer | Adam |
| Maximum sequence length | 25 |
| Batch_size | 512 |
Figure 3Model convergence.
Figure 4Comparison of different models.
Figure 5Comparison of scoring effects of different scoring strategies.