Research Article
Semantic Analysis of Public Health Medical Issues Based on Convolution Neural Networks
Algorithm 3
Manually build a dictionary for semantic analysis.
| Input: Public health issues training and test set | | Output: The test set predicts the results | | Begin | (1) | Read the training set and test set | (2) | Set jieba external library stop words and custom word sets | (3) | Part words and clean training and test sets based on stop words and custom dictionaries | (4) | Get the thesaurus set for the six categories | | for six categories: | | define the theology list Xn | | end for | | for all data for a single category: | | if the corresponding category label is 1: | | add the phrases for the row data to list Xn | | end if | | end for | (5) | Clear duplicate words from Xn | (6) | Predict the test set and get performance metrics | | End |
|